Problems with QML internationalisation on Windows CE with Qt 4.8.2
-
Just updated from Qt 4.7.4 to 4.8.2, and am having a problem with QML internationalisation.
Problem occurs when I pass a non-ASCII character to the qsTr() function, but only on Windows CE, on Windows it works as expected.
E.g., the following example@Text { text: "°" + qsTr("°") + "\xb0" + qsTr("\xb0") }@
displays as °°°° on Windows, but as °Ã☐°°Â° on Windows CE. I.e. only "\xb0" displays as expected.
(All of this without actually providing a translation.)Any ideas on what could be causing this?
-
Solved this myself. The problem was that I had defined QT_NO_CODECS and QT_NO_TEXTCODEC when configuring Qt. If I remove these definitions, things work as expected (except for a bug which I have reported as "QTBUG-26193":https://bugreports.qt-project.org/browse/QTBUG-26193).