di*****@styleish.net a écrit :
Hi, i'm working on an ASP project with prototype.js but i just can't
get special chars to work as they should.
I'm using UTF-8 pages but as soon as i call a page containing for
example å,ä,ö, < or it's replaced with a questionmark.
I call the pages using
new Ajax.Updater(target, page, {asynchronous:true, evalScripts:true});
Any ideas?
This is not a Prototype problem, and neither is a Javascript one ; I
found out that, when using accented characters (é, è, à, ô, etc.)
ISO-8859-1 work better, as UTF-8 treats those characters as two-bytes
characters, etc.
My two advices for this kind of problem are :
1) try different encodings
2) escape your characters with HTML entitites ; i.g. é = é, è
= è
Good luck !
-Yanick