Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with UTF-8 on windows 10 #9

Open
rompom opened this issue Nov 17, 2017 · 1 comment
Open

Issue with UTF-8 on windows 10 #9

rompom opened this issue Nov 17, 2017 · 1 comment

Comments

@rompom
Copy link

rompom commented Nov 17, 2017

Os: windows 10
Python: 3.5

Given a markdown document encoded in UTF-8 with "²" characters, when we run the sphinx-build we get the error :
pandoc: Cannot decode byte '\xb2': Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream

Solution found :
pandoc_markdown.py modify 2 lignes :
296 : with open(input_dir[1], 'wt',encoding="utf-8") as f:
311: output_string = open(output_dir[1],encoding="utf-8").read()

@sanzoghenzo
Copy link

Same here, the proposed solution works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants