Skip to content

blag.py - Improve UTF-8 support in Windows - #313

Open
E7-87-83 wants to merge 1 commit into
venthur:masterfrom
E7-87-83:E7-87-83-utf8-1
Open

E7-87-83 wants to merge 1 commit into
venthur:masterfrom
E7-87-83:E7-87-83-utf8-1

Conversation

@E7-87-83

Copy link
Copy Markdown

If there is non-ASCII content in the markdowns, on Windows platform python will return an error

UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 1693: illegal multibyte sequence

This is a famous error for Python on Windows. Ref: https://stackoverflow.com/questions/49021589/how-do-i-fix-this-cp950-illegal-multibyte-sequence-unicodedecodeerror-when-rea

My PR adds the encoding="utf-8" in reading and writing files in blag/blag.py.

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

Successfully merging this pull request may close these issues.

1 participant