Jump to content


I have a problem with JS HTML encoding

  • Please log in to reply
1 reply to this topic

#1 eugene2006

  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 16 October 2006 - 04:21 PM

I have a problem with JS HTML encoding
When I use non latin characters in window.alert() I get nonsense
If I use it in document html like ᄋ 弫 ᄋ ᄋ and so on then it is shown ok but when I put the same code encoding into the alert() box I get these ᄋ 弫 ᄋ ᄋ but not non latin text
How to fix it? What are the possibilities?

#2 fenway

  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 17 October 2006 - 04:11 PM

Yes, they will display literally... why not "cheat" and use PHP to decode them and put the resulting string into a JS variable?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users