Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Error : UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 3322: character maps to <undefined> #2

Closed
gsarosi67 opened this issue Dec 24, 2020 · 1 comment · Fixed by #3
Labels
bug Something isn't working

Comments

@gsarosi67
Copy link

When running on Windows 10 watchpoint crashes with an exception and the following error message:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 3322: character maps to

The problem is the open of the source code file in write_print.py on line 53:

`with open(exec_info[1]) as f:`

The encoding needs to be specified in the open call as below:

with open(exec_info[1],"r",encoding='utf-8') as f:

@gaogaotiantian gaogaotiantian added the bug Something isn't working label Dec 24, 2020
@gaogaotiantian gaogaotiantian linked a pull request Dec 24, 2020 that will close this issue
@gaogaotiantian
Copy link
Owner

Thanks for finding this. Fixed in #3 and released as 0.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants