Question #254595 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254595

RaiMan posted a new comment:
# rss
thanks.

I will write a HowTo into the docs about unicode handling in Sikuli
scripts using Python language.

A general rule for version 1.1.0+:
Despite the fact, that strings containing unicode characters are shown 
correctly in the IDE, the usage at runtime (string functions, image filenames, 
Sikuli features accepting strings as parameters (e.g. paste()), ...) might make 
problems.
To avoid these possible problems, one should always use this notation for 
strings containing unicode characters:
aUnicodeString = u"cyrillic: ั‚ะตัั‚"

now this string will be handled correctly at runtime all over the place.

any string (e.g. text loaded from a file) can be marked as being a unicode 
string by using:
aUnicodeString = ucode(otherString)

which is a convenience shortcut for
aUnicodeString = unicode(otherString, "utf8")

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to