Bug 13801: svc/bib - Set charset to utf-8 on printing header
Test plan: 0/ Add unicode characters on the record biblionumber=X 1/ go on http://<staff-interface>/cgi-bin/koha/svc/bib/X 2/ Confirm you have encoding issues 3/ Apply the patch 4/ Repeat 2 5/ Confirm that all is correctly encoded Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
836a7eba0b
commit
1410422ab6
1 changed files with 1 additions and 1 deletions
2
svc/bib
2
svc/bib
|
@ -68,7 +68,7 @@ sub fetch_bib {
|
||||||
my $biblionumber = shift;
|
my $biblionumber = shift;
|
||||||
my $record = GetMarcBiblio( $biblionumber, $query->url_param('items') );
|
my $record = GetMarcBiblio( $biblionumber, $query->url_param('items') );
|
||||||
if (defined $record) {
|
if (defined $record) {
|
||||||
print $query->header(-type => 'text/xml');
|
print $query->header(-type => 'text/xml',-charset => 'utf-8',);
|
||||||
print $record->as_xml_record();
|
print $record->as_xml_record();
|
||||||
} else {
|
} else {
|
||||||
print $query->header(-type => 'text/xml', -status => '404 Not Found');
|
print $query->header(-type => 'text/xml', -status => '404 Not Found');
|
||||||
|
|
Loading…
Reference in a new issue