02-22-2023 10:32 AM
Up to LabVIEW 2021 SP1 (32-bit) there was no problem to type ČŠŽčšž characters into Labels and controls like Text Ring, Menu Ring, Enum, etc. After that LabVIEW version typing these characters with Slovenian keyboard into controls like Enum gives two characters. We are staying at LV 2021 SP1 because we hope that this would be noticed and fixed by now. But I have tested this with LabVIEW 2023 Q1 (32-bit), and the problem is still there. I didn't change the default LabVIEW.ini settings and both LabVIEW versions are running side-by-side at the same desktop. The results are shown in the figures below.
Bojan
02-22-2023 04:17 PM
Just a guess: Try putting this in labview.ini:
Useunicode = True
02-23-2023 01:59 AM
Thank you Paul. I already try this, but it doesn't work.
I'am able to get this characters into LV 2023 Q1 labels and controls by copy/paste them from other Windows applications like Character Map or Notepad, but I can't type them with keyboard. There is no problem with LV 2021 SP1 or older LV, just with new versions. I think that by typing the text with keyboard, e.g. Č, I get two byte code U+010C and not the Windows: Central Europe code 0xC8 for this character:
Bojan
02-23-2023 02:09 AM - edited 02-23-2023 02:10 AM
Hi Bojan,
@Bojan wrote:
I think that by typing the text with keyboard, e.g. Č, I get two byte code U+010C and not the Windows: Central Europe code 0xC8 for this character:
The Unicode encoding is correct, but the 0xC8 char can be quite different even in "Central Europe":
That's what I get with keystroke Alt+0200…
02-23-2023 04:39 AM
Thank you GerdW. You get letter È with keystroke Alt+0200 because you have German setting in Windows (Windows: Western).
But can you please try to type € simbol in Enum control with in LV 2023 Q1 (32-bit, English) and tell me what you get then?
Bojan
02-23-2023 08:18 AM
For me doesn't work:
02-23-2023 08:28 AM
Hi Bojan,
@Bojan wrote:
But can you please try to type € simbol in Enum control with in LV 2023 Q1 (32-bit, English)
I'm sorry, but currently I'm limited to pre-subscription based LabVIEW versions. The most recent version I use is LV2021…
02-23-2023 08:40 AM
Unicode doesn't work for Enum. It has to be ASCII.
Take a look NI's LabVIEW Unicode Programming Tools:
https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Unicode-Programming-Tools/ta-p/3493021#:~:....
02-23-2023 08:48 AM
Žalost
02-28-2023 06:59 AM
Thank you, Andrey!
Something has changed in LV 2022 and later because if someone type € symbol into LV 2021 SP1 Enum control with keyboard, the encoding for euro symbol in Enum is one byte with hexadecimal value 0x80, while encoding for euro symbol in LV 2022 and later are two bytes with hexadecimal 0xAC and 0x20.
Anyone who has both LabVIEW versions and euro symbol on keyboard can try this.
Best regards
Bojan