I am implementing internationalization in my application. I am able to display the labels in Japanese language by using a separate property file. But I am facing issues in displaying Japanese text in alert messages and in tool tips. The text is coming as squares in IE. Same is working fine in Mozilla. I tried to do this in an html file and I am getting the saame issue. Below is the html file I have written.
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<body>
<script>
alert('\u9069\u7528');
</script>
</body>
</html>
I think the charset you are using is wrong. Is that character you are trying to use belongs to UTF-8??
Try using other charsets like ISO 8859-1.
SCJP 5, SCWCD 5
R P Kumar
Greenhorn
Joined: Sep 07, 2010
Posts: 6
posted
0
Hi
The charset is UTF-8. I created the unicode for the japnese text using the native2ascii utility.
Thanks
Ratheesh
R P Kumar
Greenhorn
Joined: Sep 07, 2010
Posts: 6
posted
0
Hi
The issue was not in the code. But problem was, IE was not able to display the characters in Japanese because it uses the OS installed language features to display alert and tooltip messages. I was not having Japanese language support installed in my machine. After installing it, I was able to see the alert and tooltip messages in Japanese.