[Qt-qml] Scandinavian characters

Mark Tucker mark.tucker at airborne.aero
Mon Dec 20 10:12:34 CET 2010


Hi,

This does raise the issue of a possible bug/issue with the creator that could be looked at, that I kind of touched on here:

http://developer.qt.nokia.com/forums/viewthread/2032/#9413

The Creator makes no effort to inform the user that the character they just pasted into the editor cannot be displayed by the QMLViewer in the current encoding. When you type/paste in such a character, you see it in the editor view perfectly fine, even after saving the file in the default Windows encoding, (which is latin-1, and not UTF-8, I believe).

Only once you close the file and then reopen it do you see in the editor view a '?' character, to indicate there may be an issue.

Thanks,

Mark T

-----Original Message-----
From: qt-qml-bounces+mark.tucker=airborne.aero at qt.nokia.com [mailto:qt-qml-bounces+mark.tucker=airborne.aero at qt.nokia.com] On Behalf Of joona.t.petrell at nokia.com
Sent: 20 December 2010 01:55
To: ext-jarno.3.rikama at nokia.com; qt-qml at qt.nokia.com
Subject: Re: [Qt-qml] Scandinavian characters

Hi,

Michael is right, this is an encoding issue, QML source files need to use UTF-8 encoding for Scandinavian characters to display correctly. You can normally select the default encoding for the text files you edit in your editor or IDE. My test of pasteing Scandinavian characters to QLineEdit was incorrect as it retained the encoding. Closed the issue I raised as invalid.

Br,

Joona

-----Original Message-----
From: Petrell Joona.T (Nokia-MS/Brisbane) 
Sent: Monday, December 20, 2010 11:35 AM
To: Rikama Jarno.3 (EXT-Sasken/Berlin); qt-qml at qt.nokia.com
Subject: RE: Scandinavian characters

Hi Jarno,

I tested Scandinavian characters on Ubuntu Linux, Symbian^3 device and Windows XP. Scandinavian characters show correctly on Linux and Symbian. On Windows XP they show correctly on QWidget-based QLineEdits, but not on QML text elements, suggesting this is a valid bug for QML elements. Other localized characters like Chinese symbols did show correctly though if you have Chinese fonts installed on your Windows XP.

I created a bug report about the issue:
http://bugreports.qt.nokia.com/browse/QTBUG-16200

Br,

Joona

-----Original Message-----
From: qt-qml-bounces+joona.t.petrell=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+joona.t.petrell=nokia.com at qt.nokia.com] On Behalf Of Rikama Jarno.3 (EXT-Sasken/Berlin)
Sent: Monday, December 20, 2010 6:20 AM
To: qt-qml at qt.nokia.com
Subject: Re: [Qt-qml] Scandinavian characters

I used scands in plain QML file without any special measures and I ran it with qmlviewer from QtCreator on Windows XP. Don't know about encoding? Scands (and also other special characters) are then shown as a question marks inside square boxes like <?>

Jarno

________________________________________
Lähettäjä: Lundqvist Petrus (Nokia-MS/Helsinki)
Lähetetty: 18. joulukuuta 2010 8:53
Vastaanottaja: Rikama Jarno.3 (EXT-Sasken/Berlin); qt-qml at qt.nokia.com
Aihe: RE: Scandinavian characters

What encoding are you using?

Peppe
________________________________________
From: qt-qml-bounces+petrus.lundqvist=nokia.com at qt.nokia.com [qt-qml-bounces+petrus.lundqvist=nokia.com at qt.nokia.com] On Behalf Of ext ext-jarno.3.rikama at nokia.com [ext-jarno.3.rikama at nokia.com]
Sent: Saturday, December 18, 2010 3:30
To: qt-qml at qt.nokia.com
Subject: [Qt-qml] Scandinavian characters

QML doesn't seem to encode Scandinavian characters like ä, ö and å properly. All special characters are shown as question marks in qmlviewer. Is there a bug? How scands can be used?

Br, Jarno
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
Qt-qml at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml


More information about the Qt-qml mailing list