Revision 49519
Added by Alessia Bardi over 6 years ago
modules/dnet-parthenos-publisher/trunk/src/main/java/eu/dnetlib/parthenos/registry/RegistryClient.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
private String extractFromRecord(final String record, final XPathSelector xPathSelector) { |
88 | 88 |
try { |
89 |
return this.saxonHelper.help().setSerializerProperty(Serializer.Property.OMIT_XML_DECLARATION, "yes").evaluateSingleAsString(record, xPathSelector); |
|
89 |
return this.saxonHelper.help().setSerializerProperty(Serializer.Property.OMIT_XML_DECLARATION, "yes").setSerializerProperty(Serializer.Property.ENCODING, "UTF-8").evaluateSingleAsString(record, xPathSelector);
|
|
90 | 90 |
} catch (SaxonApiException e) { |
91 | 91 |
throw new RuntimeException("Cannot extract content ", e); |
92 | 92 |
} |
Also available in: Unified diff
Trying to explicitely set the UTF-8 encoding