← Back to team overview

sikuli-driver team mailing list archive

[Question #265734]: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

 

New question #265734 on Sikuli:
https://answers.launchpad.net/sikuli/+question/265734

Hi Rainman
I have this message when importing clipboard (containing a List)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

I have used Env.getClipboard().encode('utf-8') and it allow the script to run even with those utf-8 characters,
but in Sikuli IDLE Message Tab those characters are show in strange code eg (é = \xc3\xa9)
Since I need to make a Fuzzy String Matching with those List's items, I guess I better delete them with regex before importing to sikuli
Please tell me
what is the difference between
App.getClipboard(); and
Env.getClipboard() ????
what other characters should I avoid besides utf-8??

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