kindle-my-clippings icon indicating copy to clipboard operation
kindle-my-clippings copied to clipboard

UnicodeDecodeError

Open jdalbey opened this issue 2 years ago • 0 comments

Running the script on a "My Clippings.txt" file taken directly from a Kindle produces this error:

Traceback (most recent call last):
  File "./extract-clippings.py", line 151, in <module>
    note_hash = hashlib.sha256(note_text.strip().encode('utf8')).hexdigest()[:8]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 27: ordinal not in range(128)

jdalbey avatar Mar 21 '22 23:03 jdalbey