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

JSON.load_file: explictly load the file as UTF-8 #702

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

casperisfine
Copy link

Fix: #697

This way even if Encoding.default_external is set to a weird value the document will be parsed just fine.

Fix: ruby#697

This way even if `Encoding.default_external` is set to a weird value
the document will be parsed just fine.
@byroot byroot merged commit b1397e2 into ruby:master Nov 7, 2024
36 checks passed
@casperisfine casperisfine deleted the load-file-utf8 branch November 7, 2024 16:27
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

Successfully merging this pull request may close these issues.

Encoding::InvalidByteSequenceError with json 2.8.1
2 participants