transifex / transifex-java

Transifex Native Toolkit for Java
Apache License 2.0
19 stars 3 forks source link

Add support for non-BMP Unicode characters in the CLI tool #56

Closed Petrakeas closed 1 year ago

Petrakeas commented 1 year ago

The CLI tool parses strings.xml so that they are uploaded to CDS. Even though it already supported Unicode characters, it didn't support non-BMP UTF-16 surrogate pairs (which are used by some emojis). Previously, such characters were converted to Numeric character references, in the form of &#xhhhh, which was not useful.

Now, they are kept (and pushed) in the original Unicode form.