EarthWeb
Developer.com
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Book
thinking in java
 
Interact
forum
guest book
jobs
jokes
what's new

share code
 
Resource
add resource
modify resource
new resource
 

[Internet Jobs]
-----
Java by E-mail:

Get the weekly e-mail highlights on Java!
-----

-

Print special character like copyright sign


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 &#169; on this tip");
 document.write(" and no &#174; or &#153 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

internet.commerce



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy