← 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

    Status: Answered => Open

Alex Nilsson is still having a problem:
Unfortunatly not, I've alse tried with 
cp500, cp865 and iso8859_10

(And I've made a script getting the fullName from a notepad, to make
sure it was just regular text I got)

I played around with it some more and:
fullName = Env.getClipboard().encode('utf-8') 
paste(fullName.encode('utf-8'))

Does actually work, but only for non-capitalized letters?!

Tried this workaround, thinking I could capitalize the starting letters afterwards:
a = fullName.encode('utf-8')
paste (a.lower())
But that (not surprisingly) didn't work..

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