python - SikulixIDE How do I change to utf-8 -


i using sikulixide in python, can't change encoding utf-8. help-me?

settings.movemousedelay=0.0 click("1465260706046.png") sleep(2) type("ação") 

it known issue. bug documented here.

the source of issue java awt robot used sikuli's type(). usage of type() restricted whatever can produce keyboard (which in fact includes on-ascii characters on many non-en keyboards). current version of sikuli 1.0.1 restricted, subset of java "presses" on keyboard, taking given character 1 us-layout.

some restrictions can overcome, if know, us-en-key press, produce wanted character local keyboard layout.

on windows, there trick num keys , alt key produce non-ascii characters. press , hold alt , press 3-digit decimal representation of character code on num pad.

if solution you: can type, need translation function.

the actual sikuli code on github (https://github.com/raiman/sikulix-2014). key translation done in class key. interface java awt robot in class desktoprobot.

source