Results 1 to 3 of 3

Thread: Qt for Android: Character Encoding problems.

  1. #1
    Join Date
    Jul 2010
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Qt for Android: Character Encoding problems.

    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

  2. #2
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt for Android: Character Encoding problems.

    Exactly same problem here...

    All characters appear like a rectangular shape...

  3. #3

    Default Re: Qt for Android: Character Encoding problems.

    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?

Similar Threads

  1. Problems Encoding to Base64
    By racinglocura07 in forum Qt Programming
    Replies: 6
    Last Post: 24th July 2010, 14:17
  2. QHtml Encoding Problems
    By kingfinn in forum Newbie
    Replies: 2
    Last Post: 5th June 2010, 13:26
  3. Character encoding in text edit and llne edit
    By greenvirag in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 08:45
  4. Character encoding issues
    By yagabey in forum Qt Programming
    Replies: 11
    Last Post: 15th December 2008, 22:20
  5. Problems with text encoding
    By LMZ in forum Qt Programming
    Replies: 4
    Last Post: 3rd July 2007, 12:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.