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

Saving code diff fails if code contains non-utf characters like ° #27

Open
peter-mitrano-bg opened this issue Jun 6, 2024 · 0 comments

Comments

@peter-mitrano-bg
Copy link

I had the degree sign (U+00B0) in a comment in my python code, and it caused store_code_state to fail. I think the fix here is as simple as changing open(diff_file_name, "x") to open(diff_file_name, "x", encoding="utf-8"). If I tested this and made a pull request, could someone review and merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant