• 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

How to display French and German Character in Javascript Alert?

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic