← Back to team overview

sikuli-driver team mailing list archive

[Question #230234]: (Chinese (Simplified)) 中文字符输入

 

A question was asked in a language (Chinese (Simplified)) spoken by
none of the registered Sikuli answer contacts.

https://answers.launchpad.net/sikuli/+question/230234

通过sikuli向文本框中输入中文时,总是显示为乱码;我在sikuli脚本的最开头指定了字符编码为“UTF-8”,并且在所输入的中文字符串前加入了“u”,可是结果依然是乱码。
比如代码如下:

#!/usr/bin/python
# -*- coding: utf-8 -*-
paste("TiC.png", u"输入中文")

#“TiC.png”,这个图片是一个文本输入框;
#这个代码执行以后,这个文本输入框里显示的字符是乱码



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.