Open JohnDiGriz opened 1 year ago
Coming to say I've hit this as well recently.
Friend and I found a temporary fix by setting whatever your environment is to UTF-8, copying the mangled file to the correct name, and adjusting utils.py to have the MD5 check section updated as follows:
"""Returns the md5sum of a file"""
md5 = hashlib.md5()
#with path.open("rb") as f:
with open(path, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):
md5.update(chunk)
return md5.hexdigest()
@undeadrattler Seems to work thanks, I really wonder why it doesn't download in the correct encoding format... it just dies if a filename has a apostrophe...
I have this exception
The error happens with files that contain any non-English letters, a single quote and some other symbols