Qt Encoding Questions
I am writing a Qt program in windows with international support. The code looks like this:
QTextCodec *p = QTextCodec::codecForName("GBK");
When the program runs on GBK-local machines, it works just fine, but with a non-GBK environment, p always has the value of NULL. I am sure that the target environment has the GBK code-p开发者_StackOverflow中文版age installed.
Why is this happening? thanks.
The code for the GBK-codec is in qcncodecs4.dll, which is located in the codecs plugin directory. Your deployed program has to find this plugin: See my answer to the Question Qt dll deployment on windows
精彩评论