← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #201882]: Replace chars in a var - string is UTF-8 encoded

 

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

Alex Nilsson gave more information on the question:
Tried a workaround w/no luck..

file = open("temp.txt", "w")
file.write(Env.getClipboard().strip().encode("utf-8"))
file.close()    
file = open("Output.txt".decode("utf-8"))
click ("somewhere to paste text")
a = (file.readline(1))
paste (a)
file.close()    

Writes the chars correctly in the file, but again distorts them upon
paste..

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