danielfrg / pelican-jupyter

Pelican plugin for blogging with Jupyter/IPython Notebooks
Apache License 2.0
422 stars 105 forks source link

UnicodeDecodeError in markup.py #54

Closed ronanpaixao closed 8 years ago

ronanpaixao commented 8 years ago

There is a bug in markup.py handling of Unicode filenames and files.

If I have a non-ASCII character in a filename, I get this error message:

ERROR: Could not process <filename>
  | UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 201: ordinal not in range(128)

And if I have a non-ASCII character in the contents, I get this:

ERROR: Could not process <filename>
  | UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 201: ordinal not in range(128)

I have tracked the errors and soon will submit a PR.

danielfrg commented 8 years ago

Fixed in #55