Chat on IRC |
Handling Mulitilingual Characters in Javascript
Posted by hariprakashk [send private reply] at August 31, 2002, 05:50:29 AM
How do I handle multilingual characters in Javascript. It is usually possible to do something like this in Javascript.
var str1 = "<HTML> <!--ur html body here --> </HTML>"; var windowObj = window.open(); windowObj.document.writeln(str1); And this perfectly well. But incase the above variable contains multilingual characters, say for example Greek characters, then the characters don't get displayed properly, only question marks are diplayed. Can I get help please?
Posted by Psion [send private reply] at August 31, 2002, 09:16:38 AM
I think you need to use the appropriate HTML meta tag to set the character encoding used by the document. Don't ask me about the details, though, because I don't know.
Register as a new user | ||||