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

utf-8 logger.py #1833

Closed
kochmaxence opened this issue Jul 30, 2016 · 6 comments
Closed

utf-8 logger.py #1833

kochmaxence opened this issue Jul 30, 2016 · 6 comments

Comments

@kochmaxence
Copy link

kochmaxence commented Jul 30, 2016

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 31: ordinal not in range(128)

logger.py:21

print('[' + time.strftime("%H:%M:%S") + '] ' + string)

should be

print('[' + time.strftime("%H:%M:%S") + '] ' + string.decode('utf-8'))

So we can bot in eg. Japan :)

[13:52:40] [x] Next egg incubates in 0.46 km
[13:52:41] Now at Pokestop: 古家石
[13:52:41] Spinning ...
[13:52:41] Possibly searching too often - taking a short rest :)
[13:52:42] Moving towards fort キノコ, 0.04km left
[13:52:46] Now at Pokestop: キノコ
[13:52:46] Spinning ...
@kochmaxence
Copy link
Author

Duplicate of #1814 imho.

@marksweb
Copy link
Contributor

I should have a fix for this in what I've done here;
marksweb@9fdc0b8

@beranPro
Copy link

Problem still there. Latest commit on dev

@marksweb
Copy link
Contributor

@beranPro in my latest commit from my fork?

@mcapala
Copy link

mcapala commented Jul 30, 2016

@karasube not

print('[' + time.strftime("%H:%M:%S") + '] ' + string.decode('utf-8')
But
print('[' + time.strftime("%H:%M:%S") + '] ' + string.decode('utf-8'))
Works for me so far

@beranPro
Copy link

No, Dev on this project

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

No branches or pull requests

5 participants