Teen Programmers Unite  
 

 

Return to forum top

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.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.