Print special character like copyright signTag(s): Language
About cookies on this site
We use cookies to collect and analyze information on site performance and usage,
to provide social media features and to enhance and customize content and advertisements.
Use the escape "&#" and the character number (in decimal) with ";".
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>
output :
To show in an alert box with accented characters, use
something like this :