Marc Heiler <lists / ruby-forum.com> wrote:
> Hi,
> 
> Are there alternatives to yaml files?
> 
> I need mostly:
> 
> key: value pairs
> 
> although the ability to load arrays directly into a .rb file would be
> cool too.

You could try to make CSV work for you.

Or just inspect/pp + eval if you want to live dangerously.

> Reason: I can no longer use yaml files in ruby 2.0 if they are not in
> UTF. As I do not use UTF and never will, yet syck has been removed, I
> need another way to load my configuration settings (I use several
> hundred yaml files). Without that I would be forced to not use my
> configuration settings (which is currently in yaml) so upgrading my ruby
> version gives me only drawbacks and extra work and no benefit.

YAML can store binary, too.  It isn't pretty, but you can continue
using whatever encoding you want:

---
FOO: !binary |-
  8Ss3UyKu9iXkSC0=

-- 
Eric Wong