Closed GoogleCodeExporter closed 9 years ago
I think that we need to take a good look at Charset priority.
Please see:
http://www.w3.org/International/O-charset
Original comment by jpmug...@suddenlink.net
on 21 Jul 2013 at 1:26
A better reference is:
http://www.w3.org/International/questions/qa-html-encoding-declarations
In the case of conflict between multiple encoding declarations, precedence
rules apply to determine which declaration wins out. For XHTML and HTML, the
precedence is as follows, with 1 being the highest.
HTTP Content-Type header
byte-order mark (BOM)
XML declaration
meta element
link charset attribute
The high precedence of the HTTP header is useful, as mentioned earlier, in
situations where the encoding of the document is changed by an intermediary
server, since such 'transcoding' is unlikely to change the in-document
declarations. The transcoding server should, however, declare the new encoding
in the HTTP header.
The HTML5 specification (which is not yet stable) formally describes precedence
for the byte-order mark (BOM). According to the specification, the BOM has
lower precedence than the HTTP Content-Type header, but higher precedence than
anything else. At the time of writing, this was not consistently implemented in
the latest versions of major browsers. For more information see the test
results.
Original comment by jpmug...@suddenlink.net
on 22 Jul 2013 at 10:19
@xyz
THtmlViewer.CodePage is ought to be a default codepage not the current
document's actual one. I'm thinking about an alternate codepage property or a
document property.
@Peter
Yes, we should implement the recommended order.
Original comment by OrphanCat
on 23 Jul 2013 at 8:30
r464 adds property THtmlViewer.DocumentCodePage instead of setting
THtmlViewer.CodePage.
Original comment by OrphanCat
on 26 Apr 2014 at 9:48
Original issue reported on code.google.com by
xyz.123....@gmail.com
on 16 Jul 2013 at 1:09