graphql-parser icon indicating copy to clipboard operation
graphql-parser copied to clipboard

Formatting: Fix support for code points beyond BMP (0000-FFFF)

Open vojtechtoman opened this issue 4 months ago • 0 comments

The Formatter::write_quoted method doesn't support Unicode code points beyond the BMP (0000-FFFF) correctly. As a result, these codepoints get mangled in the final result. For instance, the character 🤓 (U+1F913 or F0 9F A4 93 in UTF-8) gets written out as \u129299 ("ኒ99") which is incorrect. This PR attempts to fix support for the codepoints beyond BMP.

vojtechtoman avatar Oct 10 '25 13:10 vojtechtoman