• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Japanese Text in javascript alert

 
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
 
Ranch Hand
Posts: 198
Oracle Spring Java
  • 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
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic