x-stream / xstream

Serialize Java objects to XML and back again.
http://x-stream.github.io
Other
749 stars 227 forks source link

`PrettyPrintWriter` cannot write emoji in XML 1.1 mode #336

Open jglick opened 1 year ago

jglick commented 1 year ago

See https://github.com/jenkinsci/jenkins/pull/7924; can draft a unit test for this repo in case it is not obvious. In XML_1_1 mode, writeText uses charAt rather than codePointAt and so throws an error when given a supplementary code point character.

joehni commented 1 year ago

This is actual because codePointAt() does not exist in Java 1.4. It is really time for 1.5.x...