|
Entity Name |
Numeric Code |
Descriptive Code |
Character |
quotation mark |
" |
" |
" |
ampersand |
& |
& |
& |
less-than sign |
< |
< |
< |
greater-than sign |
> |
> |
> |
non-breaking space |
  |
|
|
inverted exclamation |
¡ |
¡ |
¡ |
cent sign |
¢ |
¢ |
¢ |
pound sterling |
£ |
£ |
£ |
general currency sign |
¤ |
¤ |
¤ |
yen sign |
¥ |
¥ |
¥ |
broken vertical bar |
¦ |
¦ |
¦ |
section sign |
§ |
§ |
§ |
umlaut(dieresis) |
¨ |
¨ |
¨ |
copyright |
© |
© |
© |
feminineordinal |
ª |
ª |
ª |
left angle quote, guillemotleft |
« |
« |
« |
not sign |
¬ |
¬ |
¬ |
soft hyphen |
­ |
­ |
|
registered trademark |
® |
® |
® |
macron accent |
¯ |
¯ |
¯ |
degree sign |
° |
° |
° |
plus or minus |
± |
± |
± |
superscript two |
² |
² |
² |
superscript three |
³ |
³ |
³ |
acute accent |
´ |
´ |
´ |
micro sign (Mu) |
µ |
µ |
µ |
paragraph sign |
¶ |
¶ |
¶ |
middle dot |
· |
· |
· |
cedilla |
¸ |
¸ |
¸ |
superscript one |
¹ |
¹ |
¹ |
masculine ordinal |
º |
º |
º |
right angle quote, guillemotright |
» |
» |
» |
fraction one-fourth |
¼ |
¼ |
¼ |
fraction one-half |
½ |
½ |
½ |
fraction three-fourths |
¾ |
¾ |
¾ |
inverted question mark |
¿ |
¿ |
¿ |
capital A, grave accent |
À |
À |
À |
capital A, acute accent |
Á |
Á |
Á |
capital A, circumflex accent |
 |
 |
 |
capital A, tilde |
à |
à |
à |
capital A, dieresis or umlaut mark |
Ä |
Ä |
Ä |
capital A, ring (Angstrom) |
Å |
Å |
Å |
capital AE diphthong (ligature) |
Æ |
Æ |
Æ |
capital C, cedilla |
Ç |
Ç |
Ç |
capital E, grave accent |
È |
È |
È |
capital E, acute accent |
É |
É |
É |
capital E, circumflex accent |
Ê |
Ê |
Ê |
capital E, dieresis or umlaut mark |
Ë |
Ë |
Ë |
capital I, grave accent |
Ì |
Ì |
Ì |
capital I, acute accent |
Í |
Í |
Í |
capital I, circumflex accent |
Î |
Î |
Î |
capital I, dieresis or umlaut mark |
Ï |
Ï |
Ï |
capital Eth, Icelandic |
Ð |
Ð |
Ð |
capital N, tilde |
Ñ |
Ñ |
Ñ |
capital O, grave accent |
Ò |
Ò |
Ò |
capital O, acute accent |
Ó |
Ó |
Ó |
capital O, circumflex accent |
Ô |
Ô |
Ô |
capital O, tilde |
Õ |
Õ |
Õ |
capital O, dieresis or umlaut mark |
Ö |
Ö |
Ö |
multiply sign |
× |
× |
× |
capital O, slash |
Ø |
Ø |
Ø |
capital U, grave accent |
Ù |
Ù |
Ù |
capital U, acute accent |
Ú |
Ú |
Ú |
capital U, circumflex accent |
Û |
Û |
Û |
capital U, dieresis or umlaut mark |
Ü |
Ü |
Ü |
capital Y, acute accent |
Ý |
Ý |
Ý |
capital THORN, Icelandic |
Þ |
Þ |
Þ |
small sharp s, German (sz ligature) |
ß |
ß |
ß |
small a, grave accent |
à |
à |
à |
small a, acute accent |
á |
á |
á |
small a, circumflex accent |
â |
â |
â |
small a, tilde |
ã |
ã |
ã |
small a, dieresis or umlaut mark |
ä |
ä |
ä |
small a, ring |
å |
å |
å |
small ae diphthong (ligature) |
æ |
æ |
æ |
small c, cedilla |
ç |
ç |
ç |
small e, grave accent |
è |
è |
è |
small e, acute accent |
é |
é |
é |
small e, circumflex accent |
ê |
ê |
ê |
small e, dieresis or umlaut mark |
ë |
ë |
ë |
small i, grave accent |
ì |
ì |
ì |
small i, acute accent |
í |
í |
í |
small i, circumflex accent |
î |
î |
î |
small i, dieresis or umlaut mark |
ï |
ï |
ï |
small eth, Icelandic |
ð |
ð |
ð |
small n, tilde |
ñ |
ñ |
ñ |
small o, grave accent |
ò |
ò |
ò |
small o, acute accent |
ó |
ó |
ó |
small o, circumflex accent |
ô |
ô |
ô |
small o, tilde |
õ |
õ |
õ |
small o, dieresis or umlaut mark |
ö |
ö |
ö |
division sign |
÷ |
÷ |
÷ |
small o, slash |
ø |
ø |
ø |
small u, grave accent |
ù |
ù |
ù |
small u, acute accent |
ú |
ú |
ú |
small u, circumflex accent |
û |
û |
û |
small u, dieresis or umlaut mark |
ü |
ü |
ü |
small y, acute accent |
ý |
ý |
ý |
small thorn, Icelandic |
þ |
þ |
þ |
small y, dieresis or umlaut mark |
ÿ |
ÿ |
ÿ |
Please note that similar characters (e.g. « & ») are ordered by their
numeric-based code on this page and might not be located near each other. If you
have difficulty recreating special characters that appear on this page, you can
always resort to "viewing" this document source. Have fun!
Special Note: I have noticed that Netscape 2.02 for MacOS and Unix
incorrectly render some of the letter-based descriptive codes. For maximum
compatibility (i.e. professionalism) use the numeric codes for these special
characters.
Especially Useful Special Characters |
Examples |
< |
< |
<BLINK> |
> |
> |
</BLINK> |
° |
° |
273°C |
· |
· |
CuSO4·5 H2O |
I'd like to thank all the people that have provided feedback, constructive
comments, and appreciation over years. Thanks for the help!
If you're looking for a "trademark" symbol (TM), try using
HTML like <SUP><TT>TM</TT></SUP>
Any question unanswered should be pursued at the source.
This C program reads a text file and generates HTML. It is written for UNIX, but it is really easy to adapt it for Windows.
#include <stdlib.h>
#include <stdio.h>
int main (int argc, char *argv[])
{
int ch, code;
FILE *sourcefile;
if (argc < 3)
{
fprintf (stderr, "Usage: ascii2html <file> <code (0 or 1)>\n");
exit (0);
}
if ((sourcefile=fopen(argv[1], "r"))==NULL)
{
fprintf(stderr,"Could not open \"%s\"\n", argv[1]);
exit (0);
}
code = atoi(argv[2]);
if (code) { printf("<pre><code>\n"); }
while ((ch=getc(sourcefile))!=EOF)
{
if (
(((unsigned char)ch >= 161) && ((unsigned char)ch <= 255))
||
((unsigned char)ch == 34)
||
((unsigned char)ch == 38)
||
((unsigned char)ch == 60)
||
((unsigned char)ch == 62)
)
{ printf("&#%d;", (int)ch); }
else { printf("%c",ch); }
}
if (code) { printf("</code></pre>\n"); }
return 0;
}
|