Closed nawglan closed 8 years ago
YAML::XS wants encoded strings. use utf8
automatically decodes strings inside of the script, so if you feed those to Load, you have to encode it again first.
Load(encode_utf8 $yaml);
So I'm closing this issue, but feel free to reopen if necessary.
The attached program demonstrates utf8 and YAML::XS don't mix.
I get:
With a wide character, like so:
I get: Wide character in subroutine entry at yourfile line 11.
edit @perlpunk 2016-07-02: marked code sections