Hexadecimal Character References Do Not Work in TWiki
References
XML 1.0:
[66] CharRef ::= '&#' [0-9]+ ';'| '&#x' [0-9a-fA-F]+ ';'
HTML 4.0.1:
5.3.1 Numeric character references
Numeric character references specify the code position of a character in the document character set. Numeric character references may take two forms:
- The syntax "&#D;", where D is a decimal number, refers to the ISO 10646 decimal character number D.
- The syntax "&#xH;" or "&#XH;", where H is a hexadecimal number, refers to the ISO 10646 hexadecimal character number H. Hexadecimal numbers in numeric character references are case-insensitive.
Test 1
Letter A using decimal code is A or A.
Test 2
Letter A using hexadecimal code is A or A (the latter is HTML only, not XHTML).
Summary
The decimal codes work, the hexadecimals do not. Their ampersand is processed as if it were literal.
--
TWiki:Main/PeteForman - 15 May 2007
Good catch, Pete, thanks.
Fixed
CC