Hi,
I'm trying to import some "Greek" words from an Excel file as part of a translation application, which replaces all English words with Greek words(PropertyNode->Caption->Text).
But the problem is that they show up as questionmarks instead of letters: Size distribution[mm] => ?st???af??[mm] (Should be: Size distribution[mm] => Ιστοριόγραφο[mm])
I have tried to switch the Font to "Symbol", but still the words shows up wrong
!
The Excel file shows the letters(words) correctly, so it seems to be something in LabVIEW that need to be adjusted.
Any ide? 🙂
Ps: The application works correctly for other languages which does not contain symbols, like german, french, spanish, etc...)
I believe this is related to the Unicode question. There is (as of LabVIEW 2016) limited support for Unicode in LabVIEW, as described here.
Bob Schor
Post what you have already done (VI not image) and we will try to help you.
For me it is working fine...
Did you use an UTF16LE string?
05-23-2017 05:21 AM - 已編輯 05-23-2017 05:24 AM
Hi,
Your example works fine with the text strings(constants)
.
But it does not work when trying to import from a .csv file, so i guess the problem is the .csv file format (or something like that).
I have attached the LabVIEW VI and the .csv file
05-24-2017 09:18 AM - 已編輯 05-24-2017 09:20 AM
You extracted ASCII characters instead UTF16LE characters from yours CSV file.
When you wrote those strings with InterprAsUnicode ON,the first two ASCII characters are interpreted as U+4361 (UTF16LE) or U+6143 (UTF16BE) and so on.
http://www.fileformat.info/info/unicode/char/6143/index.htm
Instead, use a text file (second message):http://forums.ni.com/t5/LabVIEW/Multilanguage-user-interface/m-p/2744846/highlight/true#M810815
Oups, I apologize.
You use a UTF08 text file (I use the same) but you forget to convert UTF08 to UTF16LE. Use "UTF8 to UTF16LE.vi" from "VIs String Conversion.zip"
http://forums.ni.com/t5/LabVIEW/Unicode-characters-in-TDMS-file/m-p/3585021#M1003909
PS Those VIs came from Babel
https://forums.ni.com/t5/LabVIEW/undocumented-function-quot-text-to-utf-8-quot/td-p/512911
Hi again,
Not sure if I'm using the "UTF8 to UTF16LE.vi" correctly, but I tried placing it between the "Index Array" and the "Property Node" (see picture).
Or am I supposed to convert the entire .csv file first (using this vi)?
06-06-2017 04:57 AM - 已編輯 06-06-2017 04:58 AM
Hello again,
It works as intended for changing Caption/BoolText 🙂
But it does not work for changing TabCaption (i'm doing this programmatically using Property "Page", which works fine for ASCII).
Any idea how to format (InterpAsUnicode) for TabCaption?