Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alert method doesn't support unicode #19

Open
paulie-g opened this issue Sep 15, 2017 · 0 comments
Open

alert method doesn't support unicode #19

paulie-g opened this issue Sep 15, 2017 · 0 comments
Labels

Comments

@paulie-g
Copy link
Owner

Issue by shula
Saturday Jun 01, 2013 at 15:34 GMT
Originally opened as autopilot-rs#42


"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

@paulie-g paulie-g added the bug label Sep 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant