← Back to team overview

sikuli-driver team mailing list archive

[Question #682434]: When I use vncScreen, it will display Chinese randomly through functions such as paste (region, new String (text. getBytes ("UTF-8"), "UTF-8"). When I use Screen, it works well.

 

New question #682434 on Sikuli:
https://answers.launchpad.net/sikuli/+question/682434

When I use vncScreen,it will display Chinese randomly  through functions such as paste (region, new String (text. getBytes ("UTF-8"), "UTF-8"). When I use Screen,it works well.
The java code is as follows.

public void keyboardPasteTextRegion(VNCScreen vncscreen, Region region, String text){
		try{
			vncscreen.paste(region,new String(text.getBytes("UTF-8"),"UTF-8"));
		}catch(Exception e){
			e.printStackTrace();
		}
	}


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.