sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18818
[Question #231065]: Pasting special text with special characters endcoding from CSV file
New question #231065 on Sikuli:
https://answers.launchpad.net/sikuli/+question/231065
Hello,
When i try to import utf-8 encoded file and use paste function to paste text with special characters into a box, i get distorted special characters such as boxes, squares etc.
Here is what I am doing
with codecs.open(inputFileName, 'rb', 'utf-8') as file:
myreader = csv.reader(file)
headers = myreader.next()
for row in myreader:
clipboardContent = clipboard.getContents(None).getTransferData(DataFlavor.stringFlavor)
SMS = row[7]
click ("SubjectIEEEA.png")
paste(("" + SMS + ""))
I tried to use the encoding without BOM and it still gives me distorted data.
Please help.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.