[Koha-bugs] [Bug 24827] New: MARC preview fails when staged record contains items with UTF-8 characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Mar 8 19:32:57 CET 2020


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

            Bug ID: 24827
           Summary: MARC preview fails when staged record contains items
                    with UTF-8 characters
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: MARC Bibliographic record staging/import
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: a.roussos at dataly.gr
        QA Contact: testopia at bugs.koha-community.org

The MARC preview of staged records fails when a staged record contains
items with UTF-8 characters (see attached screenshots). That's because
in EmbedItemsInImportBiblio() the call to MARC::Record->new_from_xml()
does not specify 'UTF-8' as the optional encoding to use.

In intranet-error.log you'll get messages such as:
showmarc.pl: XSLT_Handler: :63: parser error : PCDATA invalid Char value 27
showmarc.pl:     <subfield code="o">889.3 \x1b(SVAU\x1bs</subfield>

I suggest we fix this by explicitly specifying 'UTF-8' as the encoding
to use whenever a call to new_from_xml() is made across the codebase.

For consistency, I also propose to standardise on the encoding name in
direct calls to new_from_xml(), and use 'UTF-8' from now on instead of
'utf8' or 'utf-8'.

-- 
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