Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

alert method doesn't support unicode #42

Open
shula opened this issue Jun 1, 2013 · 0 comments
Open

alert method doesn't support unicode #42

shula opened this issue Jun 1, 2013 · 0 comments
Labels

Comments

@shula
Copy link

shula commented Jun 1, 2013

"alert" doesn't work with unicode, but with current local encoding:

running python2.7.3, 64bit, from PythonWin,

autopy.alert.alert("thmhe איציק") # img 1

True

autopy.alert.alert(title=u"Hello, איציק", msg="string from pythonwin")

Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-11: ordinal not in range(128)

... (tried all kinds of unicode/utf - all gives errors) ...

Last test, non-unicode encoding, img 2:

autopy.alert.alert(title=s.encode('cp1255'), msg="string from pythonwin")

True

itsik

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants