cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs
Date Mon, 10 Oct 2016 01:31:22 GMT


ASF GitHub Bot commented on COCOON-2352:

GitHub user benfortuna opened a pull request:

    Support for Unicode surrogate pairs

    This PR adds support for encoding surrogate pairs as a single character the XMLEncoder
implementation. See [COCOON-2352]( for further

You can merge this pull request into a Git repository by running:

    $ git pull BRANCH_2_1_X

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1
commit 4975a555b8330446089c81e17e8bfaaaee669600
Author: Ben Fortuna <>
Date:   2016-10-10T00:11:32Z

    Added required folder for build

commit cf2d9b65eb55b9d19a0b0c179e90fe7c7b70b6e6
Author: Ben Fortuna <>
Date:   2016-10-10T00:11:58Z

    Added support for decoding surrogate pairs

commit cc68b0040c5afc6286dc767810ea2ec7abd58340
Author: Ben Fortuna <>
Date:   2016-10-10T01:26:20Z

    Added unit test for encoding unicode surrogate pairs


> XMLEncoder doesn't support Unicode surrogate pairs
> --------------------------------------------------
>                 Key: COCOON-2352
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core, Blocks: Serializers
>            Reporter: Ben Fortuna
> Whilst investigating an issue with the Sling project and support for emoji characters,
I've come to notice that the XMLEncoder used by HTMLSerializer doesn't support Unicode surrogate
pairs to represent higher order unicode characters.
> A simple unit test that demonstrates this issue is here:
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:

This message was sent by Atlassian JIRA

View raw message