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

Fix ensure_ascii for json.dumps #1204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ifsheldon
Copy link

Hi! This PR simply fixes all json.dumps. With ensure_ascii=False, unicodes can be properly serialized into JSON files in the modern days when UTF-8 is basically universal. This may also prevent silent behavioral bugs from LLMs, since they can hardly understand literal strings like "\u00x" except common ones.

Some cases do not necessarily need ensure_ascii=False, but they are added for consistency.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 16, 2024
@wonseop
Copy link

wonseop commented Sep 11, 2024

The PR hasn't been merged, so I can't evaluate it in Korean.
I think it's a good PR—are there any reviewers available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants