Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created September 23, 2010 19:11
Show Gist options
  • Select an option

  • Save ingydotnet/594168 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/594168 to your computer and use it in GitHub Desktop.
=head1 USING YAML::XS WITH UNICODE
Handling unicode properly in Perl can be a pain. YAML::XS only deals
with streams of utf8 octets. Just remember this:
$perl = Load($utf8_octets);
$utf8_octets = Dump($perl);
There are many, many places where things can go wrong with unicode.
If you are having problems, use Devel::Peek on all the possible
data points.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment