graphql-parser
graphql-parser copied to clipboard
Formatting: Fix support for code points beyond BMP (0000-FFFF)
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.