sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06390
[Question #176267]: Robot Framework Unicode Problem
New question #176267 on Sikuli:
https://answers.launchpad.net/sikuli/+question/176267
Hi.
I am using Sikuli X-1.0rc3 and Robot Framework 2.6.3 on Windows 7 PC.
I have Sikuli code that looks like following:
# -*- coding: utf-8 -*-
from sikuli import *
def send_sms(*args):
phone_no = args[0]
message = args[1]
...
paste("message.png", message)
...
In Sikuli IDE, if I call send_sms :
phone_no = "010-999-9999"
message = "가나다라...." # Korean Hangul characters
send_sms(phone_no, message)
This works fine and right Korean Hangul characters are sent and received.
However when I use Sikuli with Robot Framework , broken characters are sent and received. Robot Framework log file shows that it processed the Hangul characters correctly.
KEYWORD: test_call_sms_mms.Send Sms @{PHONE_NUMBER}[0], ${MESSAGE}
Start / End / Elapsed: 20111026 14:03:05.057 / 20111026 14:03:35.128 / 00:00:30.071
14:03:35.126 INFO phone_no = 010-999-9999 message = 가나다라마바사아자차하1234567890ABCDEFGHIJ1234567890ABCDEFGHIJ1234567890
However when message gets pasted, the Hangul characters get broken.
Here is what is displayed in the console window:
C:\Sikuli\SU640>runrfw.bat test_call_sms_mms.txt
C:\Sikuli\SU640>set SU640=c:\Sikuli\SU640\
C:\Sikuli\SU640>set rfwj=c:\Sikuli\SU640\robotframework-2.6.3.jar
C:\Sikuli\SU640>set sikj=c:\W7\Sikuli X\sikuli-script.jar
C:\Sikuli\SU640>set CLASSPATH=c:\Sikuli\SU640\robotframework-2.6.3.jar;c:\W7\Sikuli X\sikuli-script.jar
C:\Sikuli\SU640>set JYTHONPATH=c:\Sikuli\SU640\test_call_sms_mms.sikuli;c:\Sikuli\SU640\robotframework-2.6.3.jar\Lib;c:\W7\Sikuli X\sikuli-script.jar\Lib
C:\Sikuli\SU640>java org.robotframework.RobotFramework test_call_sms_mms.txt
...
Thank you in advance for your help.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.