Numeric character reference: Difference between revisions

Content deleted Content added
Examples: &124; is a pipe ... see for yourself!
m convert special characters found by Wikipedia:Typo Team/moss (via WP:JWB)
 
(4 intermediate revisions by 4 users not shown)
Line 6:
In SGML, HTML, and XML, the following are all valid numeric character references for the Greek capital letter Sigma
{| class="wikitable"
|+ Numerical character reference of {{unichar|03A3|GREEK CAPITAL LETTER SIGMA}}<br/>(Note that {{hexadecimal|0931}} = 931<sub>10</sub>)
|-
! [[Unicode#Upluslink|Unicode character]]
Line 243:
| U+007B || &amp;#123; || &amp;#x7B; || {
|-
| U+007C || &amp;#124; || &amp;#x7C; || &#124;{{pipe}}
|-
| U+007D || &amp;#125; || &amp;#x7D; || }
Line 289:
For example, as mentioned above, the correct numeric character reference for the [[Euro sign]] "€" <code>U+20AC</code> when using [[Unicode]] is decimal <code>&amp;#8364;</code> and hexadecimal <code>&amp;#x20AC;</code>. However, if using tools supporting obsolete implementations of HTML, the reference <code>&amp;#128;</code> (Euro sign in the [[CP-1252]] code page) or <code>&amp;#164;</code> (Euro sign in [[ISO/IEC 8859-15]]) may work.
 
As another example, if some text was created originally using the [[MacRoman]] character set, the [[quotation mark glyphs|left double quotation mark]] {{char|"}} will be represented with code point xD2. This will not display properly in a system expecting a document encoded as UTF-8, ISO 8859-1, or CP-1252, where this code point is occupied by the letter [[Ò]]. The correct numeric character reference for {{char|"}} in HTML 4 and newer is <code>&amp;#x201C;</code>, because [[Unicode#Upluslink|U+]]201C is its UCS code. In some systems, the [[List of XML and HTML character entity references|named character reference]] <code>&amp;ldquo;</code> may also be available.
 
==See also==
Line 296:
==References==
{{Reflist}}
 
 
{{Unicode navigation}}