Chinese Characters Display Incorrectly in LabVIEW Application Built on Linux

Updated Feb 13, 2020

Reported In

Software

  • LabVIEW Full

Operating System

  • Windows
  • Linux

Issue Details

When I copy a VI development from LabVIEW 2017 Windows OS to Linux OS, all the simplified Chinese character of control, indicator, label and caption will become garbled character. After modify the garbled character and change it normally in Linux, but if compiling the VI to an executable program, the label and caption are showing in garbled characters instead of simplified Chinese character as well. 

Solution

The Unicode token in LabVIEW for Linux is considered unsupported. For more information, please consult this discussion: LabVIEW Unicode Programming Tools  

In some cases the following may work:

Write ''UseUnicode=True" in both of LabVIEW.conf file and Linux executable's .conf file. Beside that, you have to follow steps below:

  1.  Add "UseUnicode=True" to LabVIEW.conf
  • " appFont="-*-黑体-regular-r-normal--*-0-*-*-*-*-*-*" 12
  •  "dialogFont="-*-黑体-regular-r-normal--*-0-*-*-*-*-*-*" 12"
  •  "systemFont="-*-黑体-regular-r-normal--*-0-*-*-*-*-*-*" 12"
  1. Build executable
  2. Add "Use Unicode=True" flag in LabVIEW.conf file
  3. Add "AppLanguage=ChineseS" to executable.conf file
  4. Run executable.
After follow these procedures front panel can show in Chinese Character as below: