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

UnicodeEncodeError #5517

Closed
0x2400 opened this issue Sep 17, 2016 · 2 comments
Closed

UnicodeEncodeError #5517

0x2400 opened this issue Sep 17, 2016 · 2 comments

Comments

@0x2400
Copy link

0x2400 commented Sep 17, 2016

File "/Users/test/PokemonGo-Bot/pokemongo_bot/event_handlers/telegram_handler.py", line 156, in get_pokestop
"" + str(x[0] + ""),
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

@Gobberwart
Copy link
Contributor

Likely caused by a pokestop with unusual characters in its name. Can you please provide more information, eg. log lines before this occurred etc.

@julienlavergne
Copy link
Contributor

Looks like telegramhandler is manipulating pokestop names but does not have the from __future__ import unicode_literals

@k4n30 k4n30 closed this as completed Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants