Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Translation

Status
Not open for further replies.

greyone

Programmer
Dec 14, 2000
200
CA
i'm developing a bilingual site which is in french as well as in english. I would like to know if there is a way to display accents in French. I mean those charcters which have a / on top of the alphabets. Is it possible to do this in HTML or Javascript. Please help.
 
One way to do it is to hold down the alt key, then type in an ascii code on the number pad. For instance, alt+130 gives you this letter: é
You probably would need an ascii table in front of you.

Or, you could do it with microsoft word or something else, then copy the text over

ray
rheindl@bju.edu

 
Programmatically there are at least three ways to do it...

Code:
<html>
<body>
<script language=&quot;javascript&quot;>
	document.write(&quot;Unicode Method 1: \u00E8&quot;);
	document.write(&quot;<br><br>&quot;);
	document.write(&quot;Unicode Method 2: &quot; + unescape(&quot;\u00E8&quot;));
	document.write(&quot;<br><br>&quot;);
	document.write(&quot;ASCII Code Method: &quot; + unescape(&quot;%E8&quot;));
</script>
</body>
</html>

has all the unicode characters and you should be able to find the ASCII codes quite easily.

Hope it helps, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
and, don't forget the 4th method, the html code for special chars, for example &amp;eacute for é and so on - this is the easiest and most used method here in france where we need those *ù^$^accents
references are easy to find anywhere ont the web
and anyway most of the editors automatically replace those with the proper code
what's more, almost every browser display correctly those chars, no need to replace them with the special code !
 
Oops, forgot about that one. Thanks, iza!

Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
hey, thanx to you rob, i knew 1 method i now have 4 ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top