LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Polish Special Characters

Hi i am looking at translating some code i have written in english to polish.

i have a document that has all the translations i need but when i go to put them in labview some of the special characters are not being display.

for example "ł" gets displayed at "?"

does anyone know how to get these special characters to be displayed in labview.

 

Thanks Andrew

0 Kudos
Message 1 of 10
(5,050 Views)

Hi Andrew,

 

It's likely due to Unicode support being disabled within LabVIEW. These 2 resources should help.

 

Displaying Non-English Characters in LabVIEW

A List of Tips and Tools for using Unicode in LabVIEW

 

All the best,

 

 

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 2 of 10
(5,012 Views)

Having Issues Displaying Unitext in a combo box.

 

then the drop down is slected nothing shows up but the two blank options, if one is selected the correct text is then displayed (see attached example)

 

Anybody else had much sucsess with multilangual applications?

 

Thanks

0 Kudos
Message 3 of 10
(4,943 Views)

I've taken a look at your code, and I see the same behavior. I recreated the drop down menu, but couldn't render the Polish words correctly within it. 

I'm going to take a closer look at this tomorrow, and I'll be sure to let you know what I find out.

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 4 of 10
(4,918 Views)

Thanks for you help

 

I am also looking into using convert from WideCharToMultiByte function and seting windows local using different code pages to display selected language. see attached example.

to get the characters to display correctly i need to change the "Language for non-Unicode programs" setting in "Regional and Language Options" to polish.

Does anyone know how to set the code page through labview?

 

Thanks Andrew

Download All
0 Kudos
Message 5 of 10
(4,913 Views)

Hi Andrew,

 

I was able to reproduce what you've observed in your code - where choosing 'Force Unicode Text' works to display the selected combo box item, but the dropdown menu is blank. Unfortunately I wasn't able to find a workaround. Since Unicode is still officially unsupported, this type of issue may not have an easy solution.

 

The code you attached in your last post is missing a Unicode.lvlib and CodePage.ctl dependency. Would you mind attaching those files? Does MultiByte text work correctly for your application?

Kind Regards, 

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 6 of 10
(4,885 Views)

Hi Fred here are the two files needed sorry about that.

the multi byte solution does work as long as you set polish in the Language for non-Unicode programs under the Administrative tab in the Regional and Language Options.

 

Andrew

Download All
0 Kudos
Message 7 of 10
(4,867 Views)

Hi Andrew,

 

If I understand correctly, you would like to be able to set the Control Panel regional settings from within LabVIEW? If so, I found one KnowledgeBase article that talks about getting that information from the kernel32.dll.

 

And the corollary is the SetLocaleInfo function as documented on the MSDN.

MSDN: SetLocaleInfo Function 

 

I'm not exactly sure how you would otherwise implement this function, but hopefully this gives you a good start.

All the best,

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 8 of 10
(4,850 Views)

Hi

 

i only want to change the locale of the application that i run ie labview like you can do with the microsoft application "applocale" but i would like to do this programmatically

 

from what i understand you can not set the defualt locale with the SetLocaleInfo API.

 

Thanks Andrew

0 Kudos
Message 9 of 10
(4,834 Views)

I see other's have struggled with this question as well. 

 

This StackOverflow post talks about using calling the AppLocale utility from a batch script or using a command line clone to change the locale value.

Hope this helps,

 

 

Fred Visser -- SystemLink R&D -- National Instruments
0 Kudos
Message 10 of 10
(4,819 Views)