On 25/07/06, David Pollak <pollak / gmail.com> wrote: > 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)? Are you using 1.8.4? I was bitten by this in Ruby 1.8.2, and actually managed to track it down to a specific combination (when a hash key was a string containing both 0x00 and 0x0A in a non-final position). That specific bug seems to be fixed in 1.8.4, however. Paul.