Special characters in Sikuli script

我是研究僧i 提交于 2019-12-25 04:08:01

问题


I am trying to use some French special characters with Sikuli, when I type this in the Sikuli IDE,

App.open('C:\\à table\\app.exe')

But I get this error :

[log] App.open C:\à table\NDC.exe(0)
[error] App.open failed: C:\à table\NDC.exe not found

It seems that Sikuli doesn't handle utf-8 properly for the moment. All I could find in Google was the same problem with type() function and to use paste() instead, which uses the clipboard.

Is there a workaround in the case of App.open ?

Thanks a lot.


回答1:


Could make a bat file, and have App.Open('path/to/bat/file.bat') which inside contains the path to the .exe




回答2:


The reason for this problem seems that Python 2.5.X doesn't support character encodings properly. One has to use tricks like encode('cp1252'), encode('utf8')...

Since Sikuli is based on Jython which is based on Python 2.5.2, we are stuck!

I wished I lived in a country only using the standard ASCII table, I really hate all these problems related to codepage and encodings.



来源:https://stackoverflow.com/questions/10698380/special-characters-in-sikuli-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!