This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to display French and German Character in Javascript Alert? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to display French and German Character in Javascript Alert?" Watch "How to display French and German Character in Javascript Alert?" New topic
Author

How to display French and German Character in Javascript Alert?

Ramesh Shanmugam
Ranch Hand

Joined: Sep 13, 2004
Posts: 132
Hi all,
can anyone help me out..

I Need to display a alert message in the Javascript.
the Alert Message is in the French language. But the Browser is not displaying the special characters.

For example alert ("Hi R������� ");

But the above alert doest show correct characters in the alert Box.
rather it gives Question Mark for all these characters.

How to display French and German Character in Javascript Alert?


Thanks in advance,
Ramesh


Ramesh Shanmugam - SCJP 1.5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35447
    
    9
I haven't done this using JS alerts, but make sure that the character encoding of the web page is the same one that you use for your accented characters. Your headers should include something like
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />, or maybe UTF-8, depending on your circumstances.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display French and German Character in Javascript Alert?
 
Similar Threads
OS390 and javamail
Displaying Text in Another Language
Change current project to bilingual application
Thai characters in JavaScript Alert
javamail