rero / sonar

SONAR - Swiss Open Access Repository
https://www.rero.ch/products/sonar
GNU Affero General Public License v3.0
12 stars 11 forks source link

The editor or API should prevent bad character encodings #867

Closed mmo closed 1 year ago

mmo commented 2 years ago

How it works

When a document record contains character encoding problems, caused for instance when the cataloguer enters abstracts or other metadata by copying-pasting from PDF files, this affects OAI-PMH behaviour. Every PMH request that includes that record will fail with a server error:

All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

Improvement suggestion

The editor prevent to submit non authorised characters or, ideally, automatically correct it.

Alternative:

pronguen commented 2 years ago

Similar to #861