Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Japanese Text in javascript alert

 
R P Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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>

Can anyone please help to resolve this issue?

Thanks
Ratheesh
 
Prabhakar Reddy Bokka
Ranch Hand
Posts: 197
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
R P Kumar wrote:




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.

 
R P Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

The charset is UTF-8. I created the unicode for the japnese text using the native2ascii utility.

Thanks
Ratheesh
 
R P Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
Ratheesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic