Skip to content

UTF-8 Problem #2

@chris2fr

Description

@chris2fr

MacBook-Pro-de-Christopher:data chris$ ever2text cmannnotes.enex --output everout/ --format markdown
Traceback (most recent call last):
File "/usr/local/bin/ever2text", line 9, in
load_entry_point('ever2text==0.3', 'console_scripts', 'ever2text')()
File "/Library/Python/2.7/site-packages/ever2text/core.py", line 51, in main
converter.convert()
File "/Library/Python/2.7/site-packages/ever2text/converter.py", line 87, in convert
notes = self.prepare_notes(xml_tree)
File "/Library/Python/2.7/site-packages/ever2text/converter.py", line 72, in prepare_notes
converted_text = self._convert_note_to_text(title, raw_text)
File "/Library/Python/2.7/site-packages/ever2text/converter.py", line 94, in _convert_note_to_text
html2plain.feed(text.decode('utf8'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/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'\xe9' in position 178: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions