W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2000

Use hexadecimal, not decimal, for character references in all instances

From: Karlsson Kent - keka <keka@im.se>
Date: Mon, 16 Oct 2000 16:32:40 +0200
Message-ID: <C110A2268F8DD111AA1A00805F85E58D0115A77A@ntgbg1>
To: 'www-html-editor@w3.org' <www-html-editor@w3.org>
All instances of numerical character references, also in examples,
should use hexadecimal notation.  Unicode 2.0 and later as well as
10646-1:2000 only refer to characters in hexadecimal, never decimal
(10646-1:1993 did, but was only confusing, and was removed).
(Decimal should still be allowed, but don't use that.)

So, instead of:
<!ENTITY nbsp   "&#160;" ><!-- no-break space = non-breaking space, U+00A0
ISOnum -->
<!ENTITY iexcl  "&#161;" ><!-- inverted exclamation mark, U+00A1 ISOnum -->

write:
<!ENTITY nbsp   "&#xA0;" ><!-- no-break space = non-breaking space, U+00A0
ISOnum -->
<!ENTITY iexcl  "&#xA1;" ><!-- inverted exclamation mark, U+00A1 ISOnum -->

Some alias names are useful; however, *NOT* the "Unicode 1.0" names,
which should be removed from the comments.


While on the subject: all of the named character entities should
be deprecated, they only make the source hard to read.
And numerical character referenced (hexadecimal please) should
only be used when the referenced character cannot be represented
in the actual (target or source) character encoding of the document.
Received on Monday, 16 October 2000 10:34:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:49 GMT