← Back to team overview

sikuli-driver team mailing list archive

[Question #187508]: UnicodeEncodeError when writing data into text file

 

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

Hi,

I am using type("c",KEY_CTRL) and Env.getClipboard() to get data I want. And then I wrote the data into a text file. After that, I got error as below:
"UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 281: ordinal not in range(128)"

May I know how to resolve this issue? Thanks!

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