Appendix E. Character Entities
The following table lists the various Unicode escapes, HTML numeric entities, and HTML named entites for all printable ISO-8859-1 (Latin-1) characters.
The numeric and named entities may be used within HTML pages; they
are converted to symbols by web browsers. Unicode escapes may be used
within servlet code; they are interpreted by the Java compiler. For
example, a pound sign (£) can be embedded in an HTML page as
£ or £. It
can be embedded directly in Java code as \u00A3.
Note that not every HTML character entity is universally supported. The Support column indicates its level of support. An S value means the numeric and named entity values for the symbol are part of the HTML standard. A P indicates the entity values are proposed standards—not part of the HTML standard but in most cases widely supported. An N in the column indicates the entity values are nonstandard and poorly supported. For these symbols, it’s often best to use Unicode escapes.
|
Unicode Escape |
Numeric Entity |
Named Entity |
Symbol |
Description |
Support |
|---|---|---|---|---|---|
|
|
|
|
Horizontal tab |
S | |
|
|
|
|
Line feed |
S | |
|
|
|
|
Carriage return |
S | |
|
|
|
Space |
S | ||
|
|
|
|
Exclamation point |
S | |
|
|
|
|
|
Quotation mark |
S |
|
|
|
|
Hash mark |
S | |
|
|
|
|
Dollar sign |
S | |
|
|
|
|
Percent sign |
S | |
|
|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access