Closed nichtich closed 9 years ago
Part of the problem has already been issued half a year ago: https://github.com/LibreCat/Catmandu/issues/24
Available in the dev branch to be released soon
Still (or again?) broken in Catmandu version 0.9204. Please don't close unless covered by unit test and release at CPAN.
Fixed in release 0.9205.
With YAML::XS, which is preferred by YAML::Any, the YAML importer fails when importing UTF-8 YAML files:
This behaviour of YAML::XS is documented (see https://rt.cpan.org/Public/Bug/Display.html?id=54683) and won't be changed. I suppose it can be fixed by adding an encoding parameter, but this is not documented and by a bug in Catmandu::Importer or Catmandu::App::convert the parameter is not passed to the file handle anyway. This should work (it does when hard-coding "raw" in Catmandu::Importer!), but it does not:
Even when it worked, the defaul!t encoding setting (:utf8) is annoying at least for YAML. I have not tested with JSON and I won't invest more work in fixes that don't get released anyway :-(. .