Forums / Developer / UTF-8 and special characters in javascripts files
laurent le cadet
Friday 21 December 2007 5:23:15 am
Hi,
The site is using UTF-8 (ALTER TABLE from iso-8859-1).The charset seems to be properly declared in the page head:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I use a .js to count characters in fields with a text in it:
var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b> caractères maximum.'
...but the word "caratères" is printed out as "caract?eres"
Any hint?
Regards.
Laurent