UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 371: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python WebDAV Library |
New
|
Undecided
|
Unassigned |
Bug Description
when listing directory containing utf-8 encoded files, i got the following error:
Traceback (most recent call last):
File "src/webdav/
for resource, properties in webdavConnectio
File "src/webdav/
result = self.listResour
File "src/webdav/
*LiveProper
File "/usr/local/
return self.propfind(url, body, depth)
File "/usr/local/
return self._request(
File "/usr/local/
return self.__
File "/usr/local/
for status in unicode(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 371: ordinal not in range(128)
modifying Connection.py in the following way fixes the problem:
158c158
< for status in unicode(
---
> for status in unicode(
thanks!
some people might not be using utf-8. I think it's safer to use
unicode( str(response. msr),encoding= sys.getfilesyst emencoding( ))