'utf8' codec can't decode byte 0xe9 in position 30

position 30: invalid continuation byte. -- Note: Markdown only accepts unicode input!
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/ebooks/conversion/cli.py", line 360, in main
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 1198, in run
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 145, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 221, in convert_text
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 172, in handle_embedded_fonts
  File "site-packages/calibre/ebooks/oeb/base.py", line 984, in fget
  File "site-packages/calibre/ebooks/oeb/base.py", line 918, in _parse_txt
  File "site-packages/calibre/ebooks/txt/processor.py", line 105, in convert_markdown
  File "site-packages/calibre/ebooks/markdown/__init__.py", line 280, in convert
UnicodeDecodeError: "utf8" codec can"t decode byte 0xe9 in position 30: invalid continuation byte. -- Note: Markdown only accepts unicode input!

how to break

Mar.01,2021

you should at least post the wrong code. Do you want others to guess your code?


https://github.com/kovidgoyal.
is this thing you use


Markdown only accepts unicode input!


the hint is obvious' utf8' codec can't decode byte 0xe9. Guess that it may be the latin character set, which can be converted in the following ways.

In [18]: a = breadxe9'

In [19]: a.decode ('latin'). Encode (' utf8'). Decode ('utf8')
Out [19]:' '


python2.7? For coding problems, it is recommended to refer to the coding problems in my previous blog python

.
Menu