pyexchange icon indicating copy to clipboard operation
pyexchange copied to clipboard

UnicodeEncodeError in ntlm3\des.py

Open MarcelBreuers opened this issue 8 years ago • 1 comments

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.

MarcelBreuers avatar Aug 19 '16 10:08 MarcelBreuers

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.

fedorareis avatar Feb 03 '17 23:02 fedorareis