Good morning everyone
I have an issue with displaying japanese characters in the web visu.
May someone give me a hint what to do?
I have a translated textlist (see attachment). I can download it (no errors) but it displays only question marks (???)
It appears the same way on all devices, on our web panel at the machine, over a web browser from my laptop or from a mobile device.
All other language changes work.
Thanks for your help.
have you checked the box "Use unicode string" in the visu manager?
Thank you Marcel!
That was missing.
Have a great day.
I guess i was too early with celebrating
Now the HMI shows inconsistent characters.
The text on the main screen are displayed correctly
but not the text in a table.
The table is part of a Structure and the Name is defined as a string.
This string is now displayed weird.
Thanks for all answers.
You have to use wstrings if you want to display non ASCII characters.
Thank you Marcel
Thats quite a huge change in the program.
I have to replace all the strings.
Thanks for your help
I am still struggeling with this japanese characters.
I changed the data type of the "name* in my structure from string to wstring, i declared ws_text as a wstring as well and
I want to read the textlist with the function "DynamicTextGetTextW". Now it says that the a "string" cannot be converted to
Obviously the return value of this function "DynamicTextGetTextW is always a string and it will display
the wrong codes in my table.
FOR i_count10 := i_count1_start TO i_count1_start+i_stepSize DO
sTextListID := INT_TO_STRING(i_count10);
stScaleParameter[i_count10].Index := i_count10;
Is there another way to read these Japanese characters and display it correctly in the table?
All other texts, that are not part of this structure are displayed correctly (in Japanese)
Your help is much appreciated. I am new to this field and not well experienced.
Since it is a pointer, just assign the result of DynamicTextGetTextW to a POINTER OF WSTRING and after that deference it.
Thats it, thank you very much!
I would have bought you a beer if you were around
Log in to post a comment.