• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Japanese Text in javascript alert

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 198
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic