BMPixel / moffee

moffee: Make Markdown Ready to Present
https://moffee.readthedocs.io
MIT License
892 stars 41 forks source link

add encoding="utf8" to resolve UnicodeDecodeError: 'gbk' codec can't… #4

Closed allenwoods closed 3 months ago

allenwoods commented 3 months ago

add encoding="utf8" in open function, otherwise using Chinese and other language will lead to UnicodeDecodeError

BMPixel commented 3 months ago

Thank you so much for your kind help! The test seems to be failed. Can you please check it again? Or can you pass the test in your dev environment?

allenwoods commented 2 months ago

Sorry for the late response. There are indeed some tests, but they exist before I make any change, so I suppose they should be fixed by another PR