Skip to content

Instantly share code, notes, and snippets.

@kjell
Created January 14, 2009 21:43
Show Gist options
  • Save kjell/47102 to your computer and use it in GitHub Desktop.
Save kjell/47102 to your computer and use it in GitHub Desktop.
(rdb:1) irb
>> atts
=> {:description=>"TerRoc™ 330 by Inov-8 at Zeta Zappos"}
>> atts.to_yaml
=> "--- \n:description: "TerRoc\\xE2\\x84\\xA2 330 by Inov-8 at Zeta Zappos"\n"
>>
$KCODE = 'u' is set. Generally, fancy UTF–whatever characters are behaving.
But soon as I convert to yaml, they all get messed up and turned to octal.
It's infuriating! And I can't seem to fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment