how can make javascript alert() display japanese, chinese ..

plant

New Member
no matter what I type, the alert box always display "?????????"...

Does anybody know how to fix this problem.

Thanks.
 

joshvjoseph

New Member
Try out this code and include your unicode chinese/japanese in popup.htm


if(window.showModalDialog){
window.showModalDialog ('popup.htm','title_text','dialogHeight:150px;dialogWidth:200px;status:no;help:no;scroll:no;'); = "";
}
else{
alert("»¼¥æªí®æ");
}

Popup.htm
----------

<html>
<head><title>Title</title>
<meta http-equiv="Content-Type" content="text/html;charset:big5">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center">&nbsp;</td>
</tr>
<tr>
<td align="center">&nbsp;</td>
</tr>
<tr>
<td align="center">"»¼¥æªí®æ</td>
</tr>
</body>
</html>

If encoded character appears in the message box then, copy and paste chinese text directly inside <TD> instead of encoded text
 

geethu

New Member
please check the pc settings.
IF you get boses in alert popup,
goto
Controlpanel------> Regional & language---> Location-Japan
Language---> install files for east asian languages.
Restart the system to test .

 
Top