Mar 07
06
JavaScript and special characters
Share This
|
5% | Start a Discussion
Have you ever tried to include special characters like e.g. é, ê, è, ‘ or “ as a string into a JavaScript (like in an alert message when someone forgot to fill in a field in a form etc.)? Most likely it will look something like à followed by yet another character (especially in IE when the site is running on a Windows server, Firefox will probably get it right…). In order to avoid this you can simply replace the character with the corresponding Hex value (ASCII).

Weekly Stats Chart
Wordpress.org
