PDA

View Full Version : Cannot compile project with unicode characters in the project path.



lucky7456969
19th January 2013, 03:29
When there are no unicode characters in the project path, the QT project compiles.
Where there are, it doesn't
Is there a way for the project configuration to adapt to big5/unicode/utf8 etc?
Thanks
Jack

alrawab
19th January 2013, 07:45
use QTextCodec :


QApplication app(argc,argv);

app.setFont(QFont("tahoma"));//change tahoma to any appropriate font

QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("UTF-8"));

in case of pyqt4 or pyside add

# -*- coding: utf-8 -*-

unicode characters in the project path, the QT project compiles !!??
set the local for your machine correctly and every thing will be ok

lucky7456969
19th January 2013, 08:03
use QTextCodec :

unicode characters in the project path, the QT project compiles !!??
set the local for your machine correctly and every thing will be ok

In fact, it doesn't compile.
MSB6006 resulted.
Thanks
Jack

ChrisW67
20th January 2013, 01:45
Ask your compiler vendor. If their make utility or compiler cannot handle a valid path for the system it is on this is hardly Qt's fault.

lucky7456969
20th January 2013, 11:01
I've put that aside for Visual Studio. There might be something wrong with the language I am using.
But for netbeans and mingw, I am receiving these
Thanks
Jack