By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,276 Members | 1,951 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,276 IT Pros & Developers. It's quick & easy.

Special characters problem in with Prototype Ajax

P: n/a
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?

Nov 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
di*****@styleish.net wrote:
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?
You will get better help on Prototype in the Ruby on Rails Spin-offs
group:

<URL: http://groups.google.com/group/rubyonrails-spinoffs >

--
Rob

Nov 10 '06 #2

P: n/a
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. = &eacute;,
= &egrave;
Good luck !

-Yanick

Nov 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.