03-23-2012 10:14 AM
Hello All,
I'm developing an application to be used in the United States and China.
My intention is to read in all my UI Captions from a text file with Unicode encoding (UTF-8) so that Chinese characters can be used.
My question is, can I check the current code page that LabVIEW is using in any other way than checking for a Byte Order Mark?
And beyond that, can I change the current code page that LabVIEW is using to read/write files?
I am using LabVIEW 2011.
Regards,
Rob Afton
GHSP
Electrical Engineering Intern - Test Lab
03-26-2012 10:22 AM
Hi Rob,
I've been looking in to some character encoding resources for LabVIEW and I found a few things. I'm not sure if any of it will be directly applicable to what you're doing, but they may provide some insights.
Document Encoding Property (accessible from a Property Node, only works for certain document refnums such as XML)
Discussion Forum: Undocumented Function "Text to UTF-8" (a couple years old, more related to converting between encoding standards)
Tim W.
Applications Engineering
National Instruments
03-26-2012 04:29 PM
I would also suggest reading this: https://decibel.ni.com/content/docs/DOC-10153
03-28-2012 07:42 AM
Thanks for the resources guys, but it turns out my problem fixed itself.
When I ran my program on a laptop from China, LabVIEW read/wrote the initialization file in the default encoding of the computer allowing it to display the Chinese characters.
The only downside to this was that I could not test this on my computer with default 1252 code page.