12-20-2010 10:44 AM
Hi,
I want to display hungarian characters in my MessagePopups steps from UTF8 strings contained in an inifile. For that, I use a Call Executable step which calls a python script.
It already works for French, English, Chinese characters but not for Hungarian characters. I do not understand because :
1) It works when i directly write a hungarian string variable in TestStand. The messagepopup displays a correct hungarian string
2) I checked the content of my python scripts 's returned string value and it displays the good value.
I do not see why it does not work considering these remarks.
Configuration
TestStand Engine Version:4.2.1(4.2.1.83)
Sequence editor 4.2.1.83
Licence: development system
OS: Windows XP
Thanks
12-21-2010 09:26 AM
A few questions:
1) Is the default language for non-unicode programs on your machine set to hungarian? This is a setting on one of the tabs of the Region settings control panel for the OS.
2) Is the TestStand Station Options dialog Language option "Recognize multi-byte characters" checked?
3) Are you passing back the string with stdout or some other mechanism?
-Doug
12-22-2010 07:15 AM
Hi Doug,
After checking all the things you ask me to control, i do not see mistakes. So I looked for another source of possible failure considering that TestStand correctly translates a string variable entered directly in TestStand with these characters. I tried to use a file per language instead of using only one file for all the languages and now it works. I think the problem came from the fact that the Chinese and the hungarian characters are not encoded in the same way. Previously I did not want to have separate language files but I realized that it is not a problem for my application.
Thanks Doug for your help