Results 1 to 6 of 6

Thread: Problems with korean symbols in file path

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with korean symbols in file path

    Shouldn't QString::fromLocal8Bit() always do the trick? Because this seems to do the same: take an 8 bit string and convert it to Unicode based on the locale.

    I made a stupid mistake there, I used :

    Qt Code:
    1. QString string;
    2. string.fromLocal8Bit("something");
    To copy to clipboard, switch view to plain text mode 

    instead of

    Qt Code:
    1. QString string = QString::fromLocal8Bit("something");
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems with korean symbols in file path

    Nevermind about that last question, looking in the source code already answered my question . So fromLocal8Bit should in fact to the trick and is just retrieving the local Text Codec and performing To Unicode.

Similar Threads

  1. exception at 0x65100c40 (QtGuid4.dll)
    By sabeesh in forum Qt Programming
    Replies: 11
    Last Post: 21st December 2007, 17:10
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  4. QWT 5, QT3, SuSE 10.2. Crash and burn
    By DrMcCleod in forum Qwt
    Replies: 8
    Last Post: 7th September 2007, 20:53
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.