I am writing a Qt program in windows with international support. The code is as follows:
QTextCodec *p = QTextCodec::codecForName("GBK");
When a program runs on GBK-local machines, it runs fine, but with a non-GBK environment, p is always NULL. I am sure that the GBK code page is installed in the target environment.
Why is this happening? thank.
source
share