artefactual-labs / mets-reader-writer

Library to parse and create METS files, especially for Archivematica.
https://mets-reader-writer.readthedocs.io
GNU Affero General Public License v3.0
20 stars 13 forks source link

premis: stop encoding unicode #54

Closed sevein closed 5 years ago

sevein commented 5 years ago

Text values (unicode in Py2 aka str in Py3) were being encoded using the ascii encoder. This was raising UnicodeEncodeError with certain values. Letting lxml handle text values seems to be a better approach.

This connects to https://github.com/archivematica/Issues/issues/260.