How to use utf-8 unicode characters with input() and popup()
*** 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("
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)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- obaskirt
- Solved:
- Last query:
- Last reply: