Author: Real Gagnon
Author's WebSite: http://tactika.com/realhome/realhome.html
Use the escape "&#" and the character number (in decimal) with ";". Or use the escape character "\" with the octal code.
The following program prints all available characters with their
decimal/octal codes
<SCRIPT>
document.write("There is no © on this tip");
document.write(" and no ® or ™ too <br>");
for (i=33; i<256; i++) {
document.write
("&#"+i+" dec =" + i +" oct =" + (i).toString(8) );
document.write("<br>");
}
</SCRIPT>
To show in an alert box with accentued characters, use something like this :
alert("\350 \351 \352 \353");
Posted On: 10-Jul-1999