Not sure but for a Japanese project my main.cpp looks like this.

Qt Code:
  1. int main( int argc, char* argv[] )
  2. {
  3. QApplication app( argc, argv );
  4. QTextCodec::setCodecForTr( QTextCodec::codecForName( "UTF-8" ) );
  5. QTextCodec::setCodecForCStrings( QTextCodec::codecForName( "UTF-8" ) );
  6. auction* my_auction = new auction();
  7. my_auction->show();
  8. return app.exec();
  9. }
  10.  
  11. I seem to recall it not display the characters at all (even though they were simply hard-coded into the source) w/o those two lines... or at least one.
To copy to clipboard, switch view to plain text mode