← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #176267]: Robot Framework Unicode Problem

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
a first feedback:

In the case of running the script in Sikuli IDE, the parameter message is a normal ascii character string (one byte one character).
In the RFW situation, the parameter is a unicode string encoded in utf-8 (1 - 4 bytes per character).

The problem is the paste() method: it thinks, the text to paste has to be converted to utf-8 and does not realize, when it is already so.
So it works correct in the IDE, but mess things up in the RFW environment.

The solution:
In the RFW environment the script has to take care, that the string to be pasted is a bytestring (ascii, one byte per character) representing the correct byte sequence to form the unicode characters.

I will  look further, how this can be achieved.

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