Bug 14832

Summary: Encoding issues when exporting in RIS
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: OPACAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: chris, katrin.fischer, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14245
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 14832: Fix encoding issues when exporting in RIS
Bug 14832: Fix encoding issues when exporting in RIS
[PASSED QA] Bug 14832: Fix encoding issues when exporting in RIS

Description Jonathan Druart 2015-09-16 08:41:37 UTC
I have found this issue when testing bug 14245.

To reproduce:
Make sure you have non ASCII chars in the title and the authors.
Export the record in RIS
Comment 1 Jonathan Druart 2015-09-16 08:43:04 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2015-09-16 08:48:19 UTC
Does not seem to have been introduced by bug 11944, this affect 3.18.x also.
Comment 3 Jonathan Druart 2015-09-16 09:01:50 UTC
Note: I don't get the issue on a MARC21 DB.
But the patch does not seem to break the RIS export for this DB.
Comment 4 Magnus Enger 2015-10-01 09:53:34 UTC Comment hidden (obsolete)
Comment 5 Katrin Fischer 2015-10-01 21:49:22 UTC
I tried with Arabic and some other diacritics, exported from detail page and cart, but can't reproduce the issue. Can you retest please?
Comment 6 Katrin Fischer 2015-10-01 21:49:49 UTC
... it doesn't happen on a MARC21 db... sorry!
Comment 7 Katrin Fischer 2015-10-01 21:58:32 UTC
Created attachment 43039 [details] [review]
[PASSED QA] Bug 14832: Fix encoding issues when exporting in RIS

Test plan:
1/ Make sure you have non ASCII chars in the title and the authors.
2/ Export the record in RIS
You should not see any encoding problems.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Before patch: RIS file has wrongly encoded chars
After patch: RIS file has no endcoding problems
Tested on a NORMARC setup.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Tested on a MARC21 and a UNIMARC database.
Problem only confirmed for UNIMARC, but no regressions in MARC21.
Comment 8 Tomás Cohen Arazi 2015-10-02 15:11:28 UTC
Patch pushed to master.

Thanks Jonathan!
Comment 9 Chris Cormack 2015-10-23 07:43:39 UTC
Pushed to 3.20.x will be in 3.20.5