Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Fix default encoding when opening / writing files #51

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

kvankova
Copy link
Owner

@kvankova kvankova commented Mar 4, 2025

This PR fixes #50 - when opening files using open() function, it sets the encoding to the system's encoding. On windows it can be different than utf-8, which yielded to the issue opened in #50. Setting encoding='utf-8' fixes this issue.

@kvankova kvankova added the bug Something isn't working label Mar 4, 2025
@kvankova kvankova merged commit 9e24446 into main Mar 4, 2025
1 check passed
@kvankova kvankova deleted the kv_fix_emoji branch March 4, 2025 13:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Process crashes if README contains emojis
1 participant