Answer the question
In order to leave comments, you need to log in
How to create an imap folder, where the folder name is in Cyrillic?
Hello, I'm trying to create an imap folder, there are no problems with ascii characters, but if I try to use Cyrillic, then nothing happens. Python 3.5, imaplib library
M.create('INBOX.папка')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-10: ordinal not in range(128)
M.create('INBOX.папка'.encode('utf-8'))
imaplib.error: CREATE command error: BAD [b'Error in IMAP command CREATE: 8bit data in atom (0.001 + 0.000 secs).']
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question