use MARC::Record;
use MARC::Batch;
use MARC::Charset;
+use Encode;
use Koha::Script;
use C4::Context;
}
if ($yamlfile) {
open my $yamlfileout, q{>}, "$yamlfile" or die "cannot open $yamlfile \n";
- print $yamlfileout YAML::XS::Dump($yamlhash);
+ print $yamlfileout YAML::XS::Dump(Encode::decode_utf8($yamlhash));
}
exit 0;
if ($authtypes){
$headingfields = YAML::XS::LoadFile($authtypes);
$headingfields={C4::Context->preference('marcflavour')=>$headingfields};
- $debug && warn YAML::XS::Dump($headingfields);
+ $debug && warn YAML::XS::Dump(Encode::decode_utf8($headingfields));
}
unless ($headingfields){
$headingfields=$dbh->selectall_hashref("SELECT auth_tag_to_report, authtypecode from auth_types",'auth_tag_to_report',{Slice=>{}});