Here's the problem: I can have UTF-8 strings, and I can have strings that are US-ASCII. Regardless of the encoding, I would like YAML.dump (str) to actually delete String objects instead of these useless !binary objects, as the example shows.
Is there a flag or something that I don't see to get YAML.dump () to do the right thing?
Ruby 1.9.1 example
YAML::VERSION
Ruby 1.9.3 example
YAML::VERSION
Update: got my own answer
YAML::ENGINE.yamler='syck' YAML.dump(a)
So, it seems that using the old Yamler mechanism, the old behavior worked.
string ruby binary yaml utf-8
Dead pixel
source share