UTF-8 and special characters in javascripts files

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.