-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.4
-
None
-
122270d6be (qt/qtbase/dev) 122270d6be (qt/tqtc-qtbase/dev) 980395c764 (qt/qtbase/6.4) 980395c764 (qt/tqtc-qtbase/6.4)
-
Foundation PM Prioritized
In Qt6, when an XML document encoded in Shift_JIS is loaded by QDomDocument (setContent()), the following error message is thrown.
"Encoding shift_jis is unsupported".
This issue occurs on Qt6. If we use Qt5, the XML document was read correctly without any error.
Our customers use a lot of code to parse Shift_JIS encoded XML using QDomDocument, so this is a critical issue.
Is there any way to support Shift_JIS in Qt6's QDomDocument?
[Sample XML file and sample code]
Sample XML file : shift-jis.xml![]()
QDomDocument doc("mydocument");
QFile file("shift_jis.xml");
file.open(QIODevice::ReadOnly);
QString errorMsg;
int errorLine = -1;
int errorColumn = -1;
doc.setContent(&file, &errorMsg, &errorLine, &errorColumn);
qDebug() << errorMsg;
file.close();
- mentioned in
-
Page Loading...
| For Gerrit Dashboard: QTBUG-103375 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 393373,53 | Long live the ICU-based QStringConverter interface! | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 417200,3 | Long live the ICU-based QStringConverter interface! | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |