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

RaiMan posted a new comment:
Yes, that is the reason: what you get from clipboard is a utf-8 encoded
string, which is not yet handled correctly with the Jython currently
used in Sikuli.

So knowing, that the clipboard might contain non-ASCII characters
(usually utf-8), you have to use the encode('utf-8') function.

This might be handled more convenient in a future version of Sikuli
(together with a revision of the clipboard handling).

BTW: 
description = Env.getClipboard().encode('utf-8')

is sufficient, because Env.getClipboard() already returns a string.

-- 
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