mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 18:15:54 +03:00
[GH-ISSUE #173] 'charmap' codec can't encode character '\u021b' in position 24696: character maps to <undefined> #144
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GitNees on GitHub (Nov 2, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/173
https://www.fileformat.info/info/unicode/char/021b/index.htm
Crashed with this character in text of a users post.
Wrong encoding used? cp1252?
@GitNees commented on GitHub (Nov 2, 2020):
How can we set UTF-8 as encoding?
It seems cp1252 is VERY limited, when you encounter foreign languages. I think UTF-8 is a better option.
@GitNees commented on GitHub (Nov 2, 2020):
Ok, it seems on windows, Python uses cp1252 by default, this causes the issues.
Not sure how in code it can be set, but there seem to be 2 option to activate UTF-8
To enable UTF-8 mode:
This would mean you do python -Xutf8 start.py --your commands... still need to test it.
But would be better if its done by the program. I think instapy used to have that issue also, not sure how they fixed it back then.
@GitNees commented on GitHub (Nov 4, 2020):
@alexal1 this command resolved the issue. Not sure if it can be forced in the app itself or only way is the command.
You might put that in the readme for windows users, as this will resolve several crashes!
Also confirmed by another user this fix stopped the crashing.