OmegaPhil / animecheck

Commandline CRC32, MD5 and eD2k-based hashing script also capable of reading and creating SFV and MD5 checksum files and generating eD2k links. This is an initial foray into python and github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to write checksum file including 'Ranma ½ - Akane's Baka Song.avi' file

OmegaPhil opened this issue · comments

Looks like another bullshit unicode issue...

Failed to write to the checksum file '/mnt/Storage_1/Temporary Storage Folder/Anime Clips/Anime Clips.sfv':

'ascii' codec can't encode character u'\xbd' in position 6: ordinal not in range(128)

Traceback (most recent call last):
  File "./animecheck.py", line 1245, in sfv_create_mode
    checksumFile.write(relativePath.decode('utf-8') + ' '.decode('utf-8') + fileHash.decode('utf-8') + '\n'.decode('utf-8'))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbd' in position 6: ordinal not in range(128)