K-IDE support forum
Find all information about Kawasaki's Integrated Development Environment

AS Sourcecode textbox can't input chinese

#1 by zuoyuanchun , Mon May 18, 2020 9:52 am

In the programs edit textbox control ,can't input the chinese.
Could you try insert the words:
textBox1.ImeMode = System.Windows.Forms.ImeMode.On;

Another questions:
chinese in the textbox is overlap,
The reason is that the textbox control only allows one byte of display
The solution I provided:
1.
When opening as file or loading robot data (robot to kide), convert ansi to unicode display and edit

using System.Text;

OutputEncoding = Encoding.Unicode;

When save as file to the computer or load to the robot
convert Unicode to the Ansi.
2.
If using ANSI, text encoding can be detected
0x00 ~ 0x7f use one byte width display
0x80 ~ 0xFFFF use two bytes width display
This can also be solved


zuoyuanchun  
zuoyuanchun
Posts: 22
Date registered 05.01.2020


RE: AS Sourcecode textbox can't input chinese

#2 by cquante , Mon May 25, 2020 8:48 am

Dear Zuo,

thank you for your report!

Zitat von zuoyuanchun im Beitrag #1
In the programs edit textbox control ,can't input the chinese.
Could you try insert the words:
textBox1.ImeMode = System.Windows.Forms.ImeMode.On;



I changed the code today and let my colleagues test it. If no issues will be found, I'll post the update.

Zitat von zuoyuanchun im Beitrag #1
Another questions:
chinese in the textbox is overlap,
The reason is that the textbox control only allows one byte of display
The solution I provided:
1.
When opening as file or loading robot data (robot to kide), convert ansi to unicode display and edit

using System.Text;

OutputEncoding = Encoding.Unicode;

When save as file to the computer or load to the robot
convert Unicode to the Ansi.
2.
If using ANSI, text encoding can be detected
0x00 ~ 0x7f use one byte width display
0x80 ~ 0xFFFF use two bytes width display
This can also be solved


The text will still be converted forward and backward but it depends on the language of the robot controller or the AS file. If your robot controller is set to English language (for example) this conversion will not work.


Christian Quante
Project Support & Development
Technical Department

Kawasaki Robotics GmbH
Rheiner Landstrasse 195A • 49078 Osnabrück
Germany


 
cquante
Posts: 281
Date registered 12.20.2019


   

Interface panel BUG
Problems with overlapping text



Xobor Xobor Community Software
Datenschutz