Skip to content

Commit

Permalink
oai: marcxml: string encoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba authored and kpsherva committed Oct 12, 2023
1 parent 0174bcd commit 9744003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_rdm_records/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def marcxml_etree(pid, record):
# TODO: MARCXMLSerializer should directly be able to dump an etree instead
# of internally creating an etree, then dump to xml, then parse into an
# etree. See https://github.com/inveniosoftware/flask-resources/issues/117
return etree.fromstring(MARCXMLSerializer().serialize_object(item.to_dict()))
return etree.fromstring(
MARCXMLSerializer().serialize_object(item.to_dict()).encode(encoding="utf-8")
)


def dcat_etree(pid, record):
Expand Down

0 comments on commit 9744003

Please sign in to comment.