CJK character and HttpRequestValidation

L

Lau Lei Cheong

Hello,

I'm currently working on porting a website in English to Chinese
environment.

Most things works fine here, but as people familiar with CJK or any
double-byte character code pages should know, for some characters with lower
byte equal to certain characters - such as " or < - the ASP.NET will throw
something like this:

System.Web.HttpRequestValidationException: A potentially dangerous
Request.Form value was detected from the client

I'm afraid that I would have to disable this feature so people can enter
those "problematic" characters here. But is there anyway to instruct ASP.NET
to simply ignore these double-byte characters? For example they could ignore
the next character if the current character has value of greater than A0h in
Big5(Traditional Chinese).

Regards,
Lau Lei Cheong
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top