取消
顯示結果 
搜尋替代 
您的意思是: 

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 挫折表情 !
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 積分
1 條訊息(共 14 條)
5,863 檢視

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 積分
2 條訊息(共 14 條)
5,813 檢視

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

0 積分
3 條訊息(共 14 條)
5,775 檢視

For me it is working fine...

Did you use an UTF16LE string?

0 積分
4 條訊息(共 14 條)
5,765 檢視

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

下載全部
0 積分
5 條訊息(共 14 條)
5,719 檢視

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 積分
6 條訊息(共 14 條)
5,699 檢視

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 積分
7 條訊息(共 14 條)
5,694 檢視

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 積分
8 條訊息(共 14 條)
5,665 檢視

Exactly like your image.

 

0 積分
9 條訊息(共 14 條)
5,657 檢視

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 積分
10 條訊息(共 14 條)
5,611 檢視