← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #181657]: String Array (Speacial character in array)

 

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

RaiMan posted a new comment:
I could not reproduce this behavior on Windows 7 nor on Mac 10.6 with
X-1.0rc3

If the file contains utf-8, these are correctly read and printed in the
message area.

*** utf8Test.sikuli
import os
dir = getBundlePath()
fn = os.path.join(dir, "utf8.txt")
f = open(fn)
print f.readlines()[0]
f.close()

*** utf8.txt in utf8Test.sikuli
Dieser Text enthält Non-Ascii Zeichen: 今天在地鐵站看到竟然有人在彈豎琴

The message area in Sikuli IDE shows as expected:
Dieser Text enthält Non-Ascii Zeichen: 今天在地鐵站看到竟然有人在彈豎琴

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