LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Greek words(letters)

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 Smiley Frustrated !
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...)

0 Kudos
Message 1 of 14
(4,160 Views)

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

0 Kudos
Message 2 of 14
(4,110 Views)

Post what you have already done (VI not image) and we will try to help you.

0 Kudos
Message 3 of 14
(4,072 Views)

For me it is working fine...

Did you use an UTF16LE string?

0 Kudos
Message 4 of 14
(4,062 Views)

Hi,

Your example works fine with the text strings(constants) Smiley Happy .

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

Download All
0 Kudos
Message 5 of 14
(4,016 Views)

You extracted ASCII characters instead UTF16LE characters from yours CSV file.

 

ASCII instead UTF16LE.png

 


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

 

 

0 Kudos
Message 6 of 14
(3,996 Views)

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

0 Kudos
Message 7 of 14
(3,991 Views)

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)?

0 Kudos
Message 8 of 14
(3,962 Views)

Exactly like your image.

 

0 Kudos
Message 9 of 14
(3,954 Views)

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?

0 Kudos
Message 10 of 14
(3,908 Views)