-
-
Notifications
You must be signed in to change notification settings - Fork 815
Open
Description
The UTF8JsonGenerator splits a string into segments without considering that it might cut the string exactly in between the high and low surrogate chars, which makes the generator escape surrogates instead of combining them when that feature is enabled.
All cases where the segment is split must check if the final character is not the beginning of a surrogate (_isStartOfSurrogatePair
) and adjust the segment len
based on it (-1).
jackson-core/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java
Line 1346 in 7ae2b8b
int len = Math.min(_outputMaxContiguous, left); |
Does this make sense?
Metadata
Metadata
Assignees
Labels
No labels