Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.3.2
-
Ubuntu 13.04
-
1abcc1cd3d1a8d04ccfd711c3293d0c671af3c78 (qtbase/5.4, 28.10.2014, 5.4)
Description
If there is following line in html file given to QTextBrowser, it seems to assume that the content is in UTF-16LE format. There are no text encodings named unicode [1], but at least on recent firefox and chromium browsers this is assumed to mean UTF-8. This may cause problems if one expects a file that displays normally in a browser to show up with random Chinese letters.
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
HTML validators are emitting errors for using such, so this is invalid anyway, but should this line instead be ignored in this case?
1. http://www.iana.org/assignments/character-sets/character-sets.xhtml
Attachments
For Gerrit Dashboard: QTBUG-41998 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97823,2 | If you ask for a "unicode" codec, return utf-8 | 5.4 | qt/qtbase | Status: ABANDONED | -1 | 0 |
98116,2 | Hardcode UTF-8 for "unicode" in QTextCodec::codecForHtml(). | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |