JokeKappa icon indicating copy to clipboard operation
JokeKappa copied to clipboard

make output use utf8

Open Os-carsun opened this issue 7 years ago • 0 comments

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

Os-carsun avatar Apr 30 '18 07:04 Os-carsun