As they are not made explicit, the opac/svc/report script falls back to ISO-8859 encoding. To reproduce: - Create a PUBLIC report from SQL like: SELECT title, author FROM biblio LIMIT 10 - Make sure the report (tweak it so that...) returns some titles/authors that contain diacritics and non-latin characters (e.g. صة). - Call the report from the OPAC like: http://opac/cgi-bin/koha/svc/report?id=1%name=Tomas => Notice the characters are broken - Call the report from the STAFF interface like: http://opac/cgi-bin/koha/svc/report?id=1%name=Tomas => Notice the characters are broken Note: - 1 is the report's ID - "Tomas" is an arbitrary string I guess
Created attachment 25107 [details] Evidence of wrong headers
Created attachment 25108 [details] [review] Bug 11704: Make */svc/report print the correct headers To test: 1 - Go through the first comments instructions to reproduce and verify the bug is present (OPAC and STAFF) 2 - Apply the patch 3 - Repeat step 1 and notice * characters are not broken anymore * the header is correct 4 - Sign off Regards To+
Created attachment 25109 [details] Evidence of good headers (with the patch)
Created attachment 25185 [details] [review] Bug 11704: Make */svc/report print the correct headers To test: 1 - Go through the first comments instructions to reproduce and verify the bug is present (OPAC and STAFF) 2 - Apply the patch 3 - Repeat step 1 and notice * characters are not broken anymore * the header is correct 4 - Sign off Regards To+ Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Created attachment 25191 [details] [review] Bug 11704: Make */svc/report print the correct headers To test: 1 - Go through the first comments instructions to reproduce and verify the bug is present (OPAC and STAFF) 2 - Apply the patch 3 - Repeat step 1 and notice * characters are not broken anymore * the header is correct 4 - Sign off Regards To+ Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Pushed to master. Thanks, Tomás!
Pushed to 3.14.x, will be in 3.14.07.
Pushed to 3.12.x will be in 3.12.13