Dynamic Ajax Content
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
Accents on the page to be load (áíóúéñ) either don't display correctly or breaks the html code. Any ideas how to deal with this?
Thanks!
Dynamic Ajax Content
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
Accents on the page to be load (áíóúéñ) either don't display correctly or breaks the html code. Any ideas how to deal with this?
Thanks!
I think you just need to make sure that the page to be loaded uses the same character encoding as the page it's being loaded to. Also, you could try replacing the accented characters with their HTML-entity counterparts, E.G. é (é).
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Same encoding. Can't change the characters because its loading content from a database and they are already have the accents in it. Hmm... I could writte a script and swith the accent for their html entity, but it would be reading ntext fields, performace may be an issue. I'm sure it has something to do with the way the ajax is calling the page.Originally Posted by Twey
Anyone has any other idea?
Originally Posted by Twey
Then again, you are right... hehe
I was using
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> on both pages, just because of the accent issue, but it was not working.
So I tried <%response.Charset="ISO-8859-1"%> inside the head. Works perfectly. :-)
Bookmarks