crosscite / content-negotiation

DOI content negotiation
https://data.crosscite.org
MIT License
3 stars 4 forks source link

Special characters appear in the XML response are coming encoded #126

Closed ashwinisukale closed 11 months ago

ashwinisukale commented 11 months ago

We have this PR for Maremma, where we have to pass skip_encoding option true to skip encoding. https://github.com/datacite/maremma/pull/16/files

Here creatorName has ? in the name,

ashwini ~/Documents/WorkSpace/CrossCite/content-negotiation master > curl -LH "Accept: application/vnd.datacite.datacite+xml" http://localhost:8085/10.82537/9vfw-rj81  
<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4/metadata.xsd">
  <identifier identifierType="DOI">10.82537/9VFW-RJ81</identifier>
  <creators>
    <creator>
      <creatorName nameType="Personal">Pankatz-Reu??, Miriam</creatorName>

expected

<creatorName nameType="Personal">Pankatz-Reuß, Miriam</creatorName>
ashwinisukale commented 11 months ago

fixed as a part of PR https://github.com/crosscite/content-negotiation/issues/127