]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn
index c12492c6a0264bb0d680c34a6bf3e4d665a4bd95..777714d99aa706e2a00a66af81a939d6ce95bab5 100644 (file)
@@ -84,3 +84,21 @@ preferred one?
 >>>>>>> avoid this failure, while resulting in parsed yaml where every
 >>>>>>> string was likewise not decoded unicode, which is not very useful.
 >>>>>>> --[[Joey]]
+
+>>>>>>>> You guessed right about the non-decoded bytes being passed to
+>>>>>>>> YAML::XS, except this is the way it shall be done. YAML::XS
+>>>>>>>> POD reads: "YAML::XS only deals with streams of utf8 octets".
+>>>>>>>> Feed it with non-decoded UTF-8 bytes and it gives you
+>>>>>>>> properly encoded UTF-8 Perl strings in exchange.
+>>>>>>>>
+>>>>>>>> Once this has been made clear, since 1. this module indeed
+>>>>>>>> seems to be the future of YAML in Perl, and 2. is depended on
+>>>>>>>> by other popular software such as dh-make-perl (on the 2nd
+>>>>>>>> degree), I suggest using it explicitly instead of the current
+>>>>>>>> "try to support every single YAML Perl module and end up [Jasa seo jakarta](http://digiadvertise.wordpress.com/2014/04/07/jasa-seo-di-jakarta), [Wedding organizer](http://andreweweww.wordpress.com/2014/01/19/lovely-mwo-muslim-wedding-organizer)
+>>>>>>>> conflicting with the now recommended one" nightmare.
+>>>>>>>> --[[intrigeri]]
+
+>>>>>>>>> Ok, [[done]] (although YAML::Syck does also still work.) --[[Joey]]
+
+>>>>>>>>>> Thanks a lot. --[[intrigeri]]