07-18-2014 06:11 AM
Hello, I'm loading some strings from an .ini file, using Ini_GetRawStringCopy. The file is edited with Notepad++ using the charset GB2312 and everything is displayed fine here in the text editor. Unfortunately, starting a GUI created with LabWindows/CVI 2013, the charset is not displayed properly. For other GUI elements, I'm using a .lwl file and everything looks fine here. Please see the image, the left strings are from the lwl-file, the right ones from the ini-file:
What am I doing wrong?
Thank you in advance!
07-28-2014 05:58 AM
Hi,
I cannot tell you what you are making wrong without your program code. Please attached it and will look it and respond as soon as possible.
Best regards
08-05-2014 12:58 AM
As far as I know inifile.fp instrument driver doesn't support Unicode files and uses the codepage set for the operating system.
The CVI localization feature is a wrapper which handles files and their visualization in a way which is independent of the OS codepage.
It could be (but I'm not sure) that your ini files work properly if the codepage of the OS is set to GB2312.
Otherwise you must write your own wrapper to handle ini files witht this codepage