Plz help me! Are UTF-16 surrogate pairs correctly handled? #767
Unanswered
fcostello85
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Quite likely there is a bug in JSON parser. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Proposed a fix with this PR #769 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
protobuf-json-mapping
to parse a JSON string to a Protobuf generated Struct.I faced an issue parsing a json property with a value like this:
In this specific case the combination of the 2 surrogate is an Emoji -> 👑
The error is
LexerError:IncorrectUnicodeChar
.It seems that the parser is not combining the surrogate pair in order to form a single Unicode character.
Is there something I'm doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions