04-12-2013 01:33 PM
A collegue of mine asked me to post this question.
In LCVI 2009, she wants to create a text box, write an English text string to it, but see the resultant text in the text box as Arabic.
Can this be done?
Also, can button labels be displayed in Arabic?
Thanks in advance.
04-15-2013 04:09 PM
Unfortunately, LabWindows/CVI does not support Unicode character sets which I believe the Arabic characters are located. However, look into the following steps for writing non-English characters in LabWindows/CVI. This requires that you actually change your language options which I don't think is relevant to your end goal. Regardless, here is the link to do this:
http://digital.ni.com/public.nsf/allkb/3E8A86DB1B7A4EC886257909005808EC?OpenDocument
04-16-2013 12:11 PM
I'm not sure how an English string could be displayed as an Arabic string, since there isn't a one-to-one mapping between an English character and an Arabic character.
Arabic is a multi-byte character set. If you pass the appropriate multi-byte (not Unicode) string sequence to the text box, and you use the Arabic character in the text box (ATTR_TEXT_CHARACTER_SET, or set it in the UI Editor), it should be able to display it correctly. The same is true for button labels (ATTR_LABEL_CHARACTER_SET, or set it in the UI Editor).
For example, below is a screenshot of a non-sensical string I typed into a textbox after changing the character set of the textbox to Arabic and then selecting the arabic language keyboard input in the Windows language bar. I typed "abcdef" in an English-language keyboard and what you see below was the result. You could do the same thing programmatically, but you can't set the value of the control to "abcde" (otherwise, you'll probably see "abcde" in the control). You have to pass the appropriate byte sequence for the string you want to display.
07-08-2014 10:47 AM
This is an old thread, but I have need to revisit it.
Does anyone have a link to the Arabic multibyte character codes that LabWindows/CVI uses?
And is there now support for Unicode in any of the latest versions of LabWindows/CVI?
Thanks so much.
07-08-2014 11:52 AM - edited 07-08-2014 11:53 AM
The character map is here. To be honest, though, I'm not really sure how Arabic's adjoining character combinations are accounted for in this code page.
There is still no support for Unicode in the latest CVI version.
07-09-2014 12:41 AM