Results 1 to 2 of 2

Thread: How to get normal string instead of abracadabra when use readAllStandardError()?

  1. #1
    Join Date
    Feb 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default How to get normal string instead of abracadabra when use readAllStandardError()?

    Hi,everyone! I have some problems with readAllStandardError() and readAllStandardOutput(). If there are latin symbols in output string, there are no problems. But when there must be strings, like "Подпапка или файл C:\WorkDir уже существуют.", I get "ЏÂ®Â¤Ї ЇЄ ЁÂ«Ё д ©« C:\WorkDir 㦥 бгйҐбвўгҐв.". I tried to use setCodecForCStrings with different codecForName - "windows-1251" and others, but there are no results. Is there any way to get "Подпапка или файл C:\WorkDir уже существуют." instead of "ЏÂ®Â¤Ї ЇЄ ЁÂ«Ё д ©« C:\WorkDir 㦥 бгйҐбвўгҐв."? Thanks a lot!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: How to get normal string instead of abracadabra when use readAllStandardError()?

    Have you tried QString::fromUtf8() or QString::fromLatin1() or maybe fromLocal8Bit()?

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.