Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
YAML file fails to load if JVM character set is MS932 (common on Windows) #995
I fail to load yaml file in windows7.
"InputStreamReader" is using "Charset.defaultCharset"
#sample.rb # -*- coding: utf-8 -*- require 'yaml' path = File.expand_path "../sample.yaml", __FILE__ p YAML.load_file(path)
# sample.yaml ja: hoge: "テストほげ"
Please remove white space changes. Also, the commit subject doesn't seem quite right.
The issue appears to be the default character set on Windows,
If this is the real culprit, is it sufficient to just check if
Thanks for your quick reply. Thank you for pointing it out.
I think that does not use encode of RubyIO to read Yaml is a problem.
I have no confidence that is enough RubyIO.