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

Error while decoding Polish text #64

Closed
pawelad opened this issue Feb 13, 2016 · 0 comments
Closed

Error while decoding Polish text #64

pawelad opened this issue Feb 13, 2016 · 0 comments

Comments

@pawelad
Copy link

pawelad commented Feb 13, 2016

Hi,
I'm connecting to GMail account on Python 3 and getting UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 5: invalid start byte while trying to get messages via for uid, message in inbox.messages(unread=True):.

The value at hand is b'Zosta\xb3 w\xb3\xb1czony dost\xeap dla mniej bezpiecznych aplikacji'. and from what I can tell is encoded in ISO 8859-2 instead of UTF-8.

Don't really know what to do here and what should be done in the code. Is there a way to make GMail 'give' us mails encoded with UTF-8? Should we maybe try a couple of encodings within str_decode?
I can do a PR after deciding what to do here.

Cheers,
Paweł

This issue was closed.
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

1 participant