[Koha-bugs] [Bug 28604] New: bad encoding when using marc-in-json

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 18 22:33:46 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28604

            Bug ID: 28604
           Summary: bad encoding when using marc-in-json
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: REST API
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: lucas at bywatersolutions.com

There are some UTF-8 encoding problems when using marc-in-json that have
diacritics in them, I encountered this when using the '/api/v1/public/biblios/'
API route.

To recreate:
-Add some diacritics to a MARC field, I am using the 538$a and added the note
'Tést nöte'.
-Look at the what the API returns, I used this:

curl --location --request GET 'http://localhost:8080/api/v1/public/biblios/144'
\
--header 'Accept: application/marc-in-json'

The 538$a note comes out looking like this:

Tést nöte

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list