← 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

    Status: Open => Solved

obaskirt confirmed that the question is solved:
I tried below code but it did not work

import codecs
fiberSunulariFile=codecs.open(fiberSunulariLoc, 'r', encoding='utf-8')
fiberSunulariArr=fiberSunulariFile.readlines()
print(fiberSunulariArr[0])

I got below result:
fiberSunulariArr=fiberSunulariFile.readlines()
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\codecs.py", line 626, in readlines
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\codecs.py", line 535, in readlines
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\codecs.py", line 424, in read
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 14-17: invalid data

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