Alex Young
7/25/2006 11:53:00 PM
David Pollak wrote:
> Folks,
>
> It seems that when I YAML.dump arrays that contain long strings that
> contain non-printables and sometimes UTF-8 sequences, the YAML'ed
> objects can't be read back in. Is this a known issue? If so, is
> there a known work-around? Alternatively, are there any other ways to
> serialize objects (JSON doesn't work because eval() barfs on very long
> strings)?
If you're on Windows, check you're reading and writing in binary mode...
Not sure if that's what'll be causing your problem, but it's tripped
me up before.
--
Alex