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

Problems with German "Umlaut" #149

Open
pycebs opened this issue Aug 10, 2018 · 1 comment
Open

Problems with German "Umlaut" #149

pycebs opened this issue Aug 10, 2018 · 1 comment

Comments

@pycebs
Copy link

pycebs commented Aug 10, 2018

I'm experiencing (encoding) problems with the German "Umlaut".

Example: "Deleted" in German means "Gelöscht". The "ö" is a so called "Umlaut".

So when I list all folders I get this:

(\Trash \HasNoChildren) "/" Gel&APY-scht

But I should be getting:

(\Trash \HasNoChildren) "/" Gelöscht

I looked into it and apparently the IMAP protocol encodes text in "utf-7". But even if I use:

xxx.decode("utf-7")

I still get:

(\Trash \HasNoChildren) "/" Gel&APY-scht

Is this a bug or is the error on my side?

@karolzlot
Copy link

Try to use this:
.encode('utf-7')

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

2 participants