Misplaced Pages

Talk:Character encodings in HTML: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 23:08, 8 January 2007 edit71.141.135.56 (talk)No edit summary← Previous edit Revision as of 21:39, 9 January 2007 edit undoIndefatigable (talk | contribs)Autopatrolled, Extended confirmed users43,305 edits In HTML, the ''document character set'' is ''always'' the Universal Character Set: "HTML uses ... the Universal Character Set (UCS), defined in . ... The character set defined in [ISO106Next edit →
Line 3: Line 3:




This page states that a numeric entity reference *always* refers to a unicode character code point. The w3c (http://www.w3.org/TR/html401/charset.html) states that a numeric entity reference is a code point in the document's character set. This appears to be a contradiction and this page appears to be wrong. If this page is in fact correct, then this page may want to explain why the document's character set is Unicode. This page states that a numeric entity reference *always* refers to a unicode character code point. The w3c (http://www.w3.org/TR/html401/charset.html) states that a numeric entity reference is a code point in the document's character set. This appears to be a contradiction and this page appears to be wrong. If this page is in fact correct, then this page may want to explain why the document's character set is Unicode. {{unsigned|71.141.135.56|23:08 UTC, 8 January 2007}}

: In HTML, the ''document character set'' is ''always'' the ]: "HTML uses ... the Universal Character Set (UCS), defined in . ... The character set defined in is character-by-character equivalent to Unicode ().". However, many different ''encodings'' of the UCS can be used: ], ], ], ], ], and so on. Numeric character references always refer to the document character set, i.e., the UCS. The distinction between character set and character encoding is a bit tricky, so you're right, it could be explained better in the article. ] 21:39, 9 January 2007 (UTC)

Revision as of 21:39, 9 January 2007

Is the character encoded by an HTML number the same character that is encoded by Unicode by the same number? For example, is character number 2343 in HTML the same as 2343 in Unicode? --Abdull 14:28, 19 August 2005 (UTC)

this was also posted at Talk:Unicode and HTML where it has been replied to, please post any further replies there. Plugwash 17:49, 19 August 2005 (UTC)


This page states that a numeric entity reference *always* refers to a unicode character code point. The w3c (http://www.w3.org/TR/html401/charset.html) states that a numeric entity reference is a code point in the document's character set. This appears to be a contradiction and this page appears to be wrong. If this page is in fact correct, then this page may want to explain why the document's character set is Unicode. — Preceding unsigned comment added by 71.141.135.56 (talkcontribs) 23:08 UTC, 8 January 2007 (UTC)

In HTML, the document character set is always the Universal Character Set: "HTML uses ... the Universal Character Set (UCS), defined in . ... The character set defined in is character-by-character equivalent to Unicode ().". However, many different encodings of the UCS can be used: UTF-8, UTF-16, ISO-8859-1, US-ASCII, SHIFT_JIS, and so on. Numeric character references always refer to the document character set, i.e., the UCS. The distinction between character set and character encoding is a bit tricky, so you're right, it could be explained better in the article. Indefatigable 21:39, 9 January 2007 (UTC)