LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Caption.Text in a Chinese or Vietnamese

Solved!
Go to solution

Trying doing things in this order:

paul_a_cardinale_0-1733699435123.png

0 Kudos
Message 11 of 17
(83 Views)

Make sure that before any concatenation, all the string parts are UTF-16 LE.

0 Kudos
Message 12 of 17
(82 Views)

Thank you Paul.
I don't know how to cast a regular string to a UTF-16 string. Please find attached and down here, the Fi and Vi strings are ASCII, I need to cast them into UTF-16.

ngthai_0-1733702371605.png
I used this, but it did not work:

ngthai_0-1733704005007.png

 

 

 

Download All
0 Kudos
Message 13 of 17
(78 Views)
Solution
Accepted by topic author ngthai

No worry. I was able to cast regular string to UTF-16 string. All good now.

ngthai_0-1733745932610.png

 

0 Kudos
Message 14 of 17
(63 Views)

@ngthai wrote:

No worry. I was able to cast regular string to UTF-16 string. All good now.

ngthai_0-1733745932610.png

 


This is much simpler:

paul_a_cardinale_0-1733754808093.png

Or, if you want to get fancy, use the attached "ASCII to UTF-16.vi".

 

Another way to deal with it is to try the attached "Concatenate ASCII or UTF16.vi".

Download All
Message 15 of 17
(52 Views)

I continue to have extremely weird responses from Labview front panel:
In Chinese, the probe is: 

ngthai_0-1734011521899.png

but the display is backward (i.e., from right to left): ngthai_1-1734011579511.png
Why labview suddenly displaying backward?

 

However, when I changed to this phrase "严重   " with a few spaces there, then labview is displaying correctly from left to right: 严重    偏心 =3.2 CSI= 20.3 

So the problem is solved for me (by not using the ., and use the spaces after 严重). I'm just curious what happened.

 

0 Kudos
Message 16 of 17
(28 Views)

@ngthai wrote:

I continue to have extremely weird responses from Labview front panel:
In Chinese, the probe is: 

ngthai_0-1734011521899.png

but the display is backward (i.e., from right to left): ngthai_1-1734011579511.png
Why labview suddenly displaying backward?

 

However, when I changed to this phrase "严重   " with a few spaces there, then labview is displaying correctly from left to right: 严重    偏心 =3.2 CSI= 20.3 

So the problem is solved for me (by not using the ., and use the spaces after 严重). I'm just curious what happened.

 


I don't know.  My guess is that you have a mismatch between the "Interpret As Unicode" settings and whether the corresponding characters are actually ASCII or Unicode.  If that's happening, then some characters could be misinterpreted as the wrong Unicode characters; some of which are for right-to-left display.

0 Kudos
Message 17 of 17
(20 Views)