websmith99
October 18th, 2002, 06:48 PM
There is a bug happening on my application for IE users if they cut and paste UTF-8 characters, such as the "smart quote" used by Microsoft Word, into a form field and then submit the form.
Because IE has a bug in that it will not send the form data correctly when these UTF-8 characters are present, it results in an application exception.
I was wondering if it is possible in JavaScript to detect these UTF-8 characters in the form elements in an onSubmit function and either remove them from the string or replace with an approximation. For example, if I come across the "opening smart double quote" I would replace with a standard double quote.
Can you detect these special characters using JavaScript?
Because IE has a bug in that it will not send the form data correctly when these UTF-8 characters are present, it results in an application exception.
I was wondering if it is possible in JavaScript to detect these UTF-8 characters in the form elements in an onSubmit function and either remove them from the string or replace with an approximation. For example, if I come across the "opening smart double quote" I would replace with a standard double quote.
Can you detect these special characters using JavaScript?