AREPL Encoder cp1252 to utf-8See original GitHub issue
I’m new to AREPL so if I’m just overlooking a simple feature that already exists or it’s user error feel free to call me out.
When I run the code:
import sys print(sys.stdout.encoding)
AREPL prints: cp1252 VSCode in the terminal prints: utf-8 Also VSCode encoder is set to UTF-8
This difference can be quite inconvenient when trying to pull data from a web page and AREPL returns “UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 0-4: character maps to <undefined>”,
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
hmm i don’t think so it is really helpful answer…
I am Korean and i used korean characters in comment in python file in vs Code.
but arepl didn’t works when korean character in code.
I found some trouble issues in Encoding tech in Korean.
There is some trouble when using EUC-KR encoding tech. And my OS using cp949…
So I changed my encoding setting in windows system.
control -> World&National -> Administration Option -> change the system Local -> Check box : Beta :~~~~~~ Unicode UTF-8 using.
After rebooting my computer.
there is no problem using arepl in vs code…
My English writing skills are not good…
but I hope it will help some people…