linkedin / pyexchange

Python wrapper for Microsoft Exchange
Apache License 2.0
152 stars 98 forks source link

UnicodeEncodeError in ntlm3\des.py #73

Open MarcelBreuers opened 8 years ago

MarcelBreuers commented 8 years ago

Hi,

I have successful been using pyexchange for retrieving calendar items from my company server. The last successful test was several months ago. But yesterday I got this error:

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

I am using Python 2.7.12 |Anaconda 2.2.0 (32-bit) I enter all relevant parameters as unicode.

fedorareis commented 7 years ago

It is trying to return a unicode character as an ascii character. You will need to do something along the lines of unicode-variable.encode('utf8') in order to get the data.