Skip to content

make output use utf8#9

Open
Os-carsun wants to merge 2 commits intovinta:masterfrom
Os-carsun:master
Open

make output use utf8#9
Os-carsun wants to merge 2 commits intovinta:masterfrom
Os-carsun:master

Conversation

@Os-carsun
Copy link
Copy Markdown

@Os-carsun Os-carsun commented Apr 30, 2018

Hi
when I use this package I have met some prob

after I print exception of function, "load from file"
I found "UnicodeEncodeError: 'ascii' codec can't encode character"

So I thinks it should be add
"sys.stdout = TextIOWrapper(sys.stdout.buffer, encoding='utf-8')"
and
"open(filepath, "r", encoding='utf-8')"
in this code

thanks

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