ruby / json

JSON implementation for Ruby
https://ruby.github.io/json
Other
704 stars 333 forks source link

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

Closed casperisfine closed 2 weeks ago

casperisfine commented 2 weeks ago

Fix: https://github.com/ruby/json/issues/697

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