Results 1 to 12 of 12

Thread: unicode character displays ok on Windows, not on Linux

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: unicode character displays ok on Windows, not on Linux

    That's because Windows and Linux use different "local8Bit" encodings. For Windows this is probably utf-8 while for your Linux it is presumably latin1. Use QString::fromUtf8() to explicitly convert a utf-8 string to Unicode.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    schnitzel (21st February 2011)

Similar Threads

  1. Replies: 10
    Last Post: 17th July 2014, 10:52
  2. QRegExp Unicode Character Classes
    By Delagen in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2010, 12:17
  3. Character by Character (Unicode?) File Reading
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 22nd April 2009, 15:28
  4. How to read QStringList character by character
    By iamjayanth in forum Qt Programming
    Replies: 4
    Last Post: 3rd April 2009, 11:25
  5. Unicode Character Problem
    By prakash in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2006, 07:25

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
  •  
Qt is a trademark of The Qt Company.