That's a good remark, I kept on using ASCII combined with different codecs, not really knowing what was going wrong.
So is this what I need to do? I would like to check with you guys first, otherwise I need to keep on sending test files to Korea
. It works on my system, but no idea what it will be there.
const char* c_str = ...; //Coming from LabVIEW
QString converted
= codec
->toUnicode
(c_str,
strlen(c_str
),
0);
const char* c_str = ...; //Coming from LabVIEW
QTextCodec* codec = QTextCodec::codecForLocale();
QString converted = codec->toUnicode(c_str, strlen(c_str), 0);
To copy to clipboard, switch view to plain text mode
Also, I was wondering if you need to include any additional files on deployment to have access to all codecs. For example, when I use QTextCodec::codecForName("EUC-KR") in a Qt program, a successful codec is returned. If I do the same in my LabVIEW controlled DLL, 0 is returned.
Bookmarks