Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Converting to execution character set: Illegal byte sequence Erorr ?!!!
Forum Updated to NodeBB v4.3 + New Features

Converting to execution character set: Illegal byte sequence Erorr ?!!!

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 7.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahura_24
    wrote on 3 May 2012, 22:21 last edited by
    #1

    hi
    @
    #include <QtGui>

    int main(int argc, char **argv)
    {
    QApplication app(argc, argv);

    QPushButton btn;
    btn.setText( QString::fromWCharArray(L"سلام") );
    btn.show();
    
    return app.exec();
    

    }
    @

    what is wrong in this code ?!! that take "converting to execution character set: Illegal byte sequence" erorr.
    qt 4.8.1 : qt creator 2.4.1 : MinGW-gcc440_1 compiler

    i write this code with msvc compiler and compile successfuly but with mingw ... !!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on 3 May 2012, 22:29 last edited by
      #2

      What you need is told MinGW which encoding your source file used if is not UTF-8.


      In addition, MinGW-gcc4.4 seems have a bug, maybe -finput-charset=charset will refuse to work. You can try to update your MinGW to 4.6 +

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ahura_24
        wrote on 3 May 2012, 22:33 last edited by
        #3

        i cant understand your means. i use UTF-8 method but take the same erorr!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ahura_24
          wrote on 4 May 2012, 08:48 last edited by
          #4

          i update my mingw but take the same error ! please help me

          1 Reply Last reply
          0

          1/4

          3 May 2012, 22:21

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved