-
Notifications
You must be signed in to change notification settings - Fork 7
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
UnicodeDecodeError #7
Comments
Marius, What is the output of N |
Nicolas,
|
This looks like a locale problem. Please update to include Unicode (UTF-8), e.g. fr_FR.UTF-8 |
Hi, I guess you mean calling setlocale. I tried, this is the one that works:
|
I just tried again, same error. Another track I'm looking at is to add decoding of the headers before calling email.utils.getaddresses in message_info.GetRecipients(): I'll take a look after my holiday, in about 2 weeks. Marius |
Ok let me know how it goes, it's hard for me to debug this since I don't use Windows. |
Hi, I have the same error: My system: Debian Testing. Python 2.7.3.
|
Update: I just saw, I checked out the original repository. Trying your checkout, the problem does not occur as reported. Everything seems fine for me. Thanks. |
Hi,
Thanks for the great work so far!
I had this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 152: ordinal not in range(128)
I am using an account with 2-steps authentication (sign in OK).
My system is Windows 7 32 bit English, Python 2.7.
I modified one file
messageinfo.py
__newestMessageSec = time.mktime([1970, 1, 1, 0, 0, 0, 0, 0, 0])
->
__newestMessageSec = time.mktime([1980, 1, 1, 0, 0, 0, 0, 0, 0])
Here is the full error message:
..
[2012-01-30 16:37:21,589] Logging out
[2012-01-30 16:37:22,026] Identifying "me" messages
Traceback (most recent call last):
File "main.py", line 251, in
message_infos = GetMessageInfos(opts)
File "main.py", line 102, in GetMessageInfos
for name, address in message_info.GetRecipients():
File "D:\Marius\npinto-mail-trends\messageinfo.py", line 81, in GetRecipients
tos + ccs + resent_tos + resent_ccs)
File "d:\python27\lib\email\utils.py", line 106, in getaddresses
all = COMMASPACE.join(fieldvalues)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 152: ordinal not in range(128)
Thanks again,
Marius
The text was updated successfully, but these errors were encountered: