@@ -, +, @@ 200 special characters play with oai_dc, srw_dc, mods, mods-full, mods3, mods3-full, rdfdc. Note: marcxml does not fail decoding characters cgi-bin/koha/unapi cgi-bin/koha/unapi?id=koha:biblionumber:4 -Apply patch -Follow steps 2 to 6 -You will see no errors in utf8 --- opac/unapi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/opac/unapi +++ a/opac/unapi @@ -144,14 +144,14 @@ if (not defined $format) { my $parser = XML::LibXML->new(); my $record_dom = $parser->parse_string( $marcxml ); $record_dom = $transformer->transform( $record_dom ); - $content = $record_dom->toString(); + $content = $transformer->output_as_chars( $record_dom ); }; if ($@) { print $cgi->header( -status => '500 internal error ' . $@->code() . ": " . $@->message() ); exit 0; } - print $cgi->header( -type =>'application/xml' ); + print $cgi->header( -type =>'application/xml', -charset => 'UTF-8' ); print $content; } else { # ID is obviously wrong, so 404 @@ -172,7 +172,7 @@ sub emit_formats { if (defined $id) { print $cgi->header( -type =>'application/xml', -status => '300 multiple choices' ); } else { - print $cgi->header( -type =>'application/xml' ); + print $cgi->header( -type =>'application/xml', -status => '200 Ok' ); } print "\n"; --