PDA

View Full Version : Qt for Android: Character Encoding problems.



HeReSY
20th July 2011, 01:15
Hi,

i have written a small programm for my Android phone. But when the app start, all i can see are some rectangular characters instead of the normal characters.

How can i display the right characters so, that everything looks normal.

thanks in advance.

Bruno

Kisuni
22nd July 2011, 14:37
Exactly same problem here...

All characters appear like a rectangular shape...

krunoslav
18th March 2012, 22:48
Hi,
I am using qsTr in my QML and have same problem (only rectangulars), but not with all chars, only specific ones (like šđčćž).

Interesting thing, when I switch to cyrilic (for eg Russian) I see all fine!

Tried changing encoding with QTextCodec::setCodecForCStrings but nothing helped.

Is there a way to reimplement qsTr? Tried by reimplementing QTranslator::translate, but seems like reimplementation doesn't work (not called at all).

Any ideas?