• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display French and German Character in Javascript Alert?

 
Ramesh Shanmugam
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic