Jump to content

Archived

This topic is now archived and is closed to further replies.

eugene2006

I have a problem with JS HTML encoding

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Yes, they will display literally... why not "cheat" and use PHP to decode them and put the resulting string into a JS variable?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.