sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07590
Re: [Question #181735]: How to use Turkish Character with Input() and popup()
Question #181735 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/181735
Description changed to:
*** solution
--- input("a unicode string")
here it is just enough to tell Jython, that the string contains unicode characters:
a=input(u"Enter a Sayı")
--- answer = input("hello")
if it might be, that the returned string in answer contains utf-8 unicode characters, you have to write:
answer = input("hello").encode("utf-8")
if answer is used with functions that are not unicode aware (like
print).
--- popup()
itself is unicode aware
answer = input("hello")
popup(answer)
works correctly, if answer contains unicode characters.
--------------------------------------------------------------------------------
My question is very simple and easy
I am trying to use Turkish character "ı, ş, ü, ö, ç, ğ" with input function. But I can not see them correctly when I am running the code. How can I solve this problem?
a=input("Enter a Sayı")
popup(a)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.