You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ian Maxon (Jira)" <ji...@apache.org> on 2021/03/17 18:14:00 UTC
[jira] [Created] (ASTERIXDB-2846) AStringPrinterFactory creates
objects for characters requring surrogate pairs
Ian Maxon created ASTERIXDB-2846:
------------------------------------
Summary: AStringPrinterFactory creates objects for characters requring surrogate pairs
Key: ASTERIXDB-2846
URL: https://issues.apache.org/jira/browse/ASTERIXDB-2846
Project: Apache AsterixDB
Issue Type: Bug
Reporter: Ian Maxon
AStringPrinterFactory uses PrintTools.writeUTF8StringAsJSON to pull the variable-length encoded string out of a record field. In the case of a character that is in the supplementary plane, it uses writeSupplementaryChar() to put its high and low surrogates into the output string. This method creates a new String and new character array with the high and low surrogates in lieu of trying to emit the character directly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)