If you want to get marcxml bibliographic record through /svc/bib service, it return national characters badly (possibly double?) encoded. Like this: <datafield tag="653" ind1="0" ind2=" "> <subfield code="a">historické romány</subfield> <subfield code="a">JežÃÅ¡ Kristus</subfield> <subfield code="a">Jeruzalém</subfield> <subfield code="a">životopis</subfield> </datafield> It should be: <datafield tag="653" ind1="0" ind2=" "> <subfield code="a">historické romány</subfield> <subfield code="a">Ježíš Kristus</subfield> <subfield code="a">Jeruzalém</subfield> <subfield code="a">životopis</subfield> </datafield>
I can't seem to reproduce this bug on current master. Do you see that on all or just some records? Do you see it on all fields?
Hello, problem is in all tested records and fields. I can give You access into our testing server, if it help. Complete example: http://pastebin.com/n6Fg0Ase Thanks Mike
I've just tried the the master version from git now, on another server (new clean virtual with debian wheezy). I've imported this record from library of congress: http://lccn.loc.gov/59046328 and then tried to access it through http://<staff-interface>/cgi-bin/koha/svc/bib/1 accessed through browser (Firefox and Chromium): http://pastebin.com/ueb58YKZ downloaded using curl: http://pastebin.com/LG09JjeB through browser, the encoding seems bad, through curl everything is ok... could be some problem with http headers? (just guess)
I reproduce the issue.
Created attachment 36658 [details] [review] 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
Created attachment 36668 [details] [review] 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>
Works as expected, thank you Jonathan.
Created attachment 36906 [details] [review] [PASSED QA] 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>
Patch pushed to master. Thanks Jonathan!
Pushed to 3.18.x will be in 3.18.6
Was pushed in 3.16.09
Pushed to 3.14, will be in 3.14.15.
(In reply to Fridolin SOMERS from comment #11) > Was pushed in 3.16.09 oops, thanks for spotting that Fridolin :0)