You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just stumble on this error (JsonWriterException: illegal char sequence of surrogate pair) while marshalling a large data structure containing the original file names of a real filesystem (with probably a bad file name somewhere it seems).
I've tried with withEscapeUnicode true and false but the result is the same. What can I do ?
As a workaround, until the source problem is not fixed, you can serialize invalid surrogate pairs using a custom codec that store string as a raw value (see, out.writeRawVal), but in that case you should encode UTF-8 characters and escape \r, \t, \n, and \f values by your code (as an example using other JSON serializer).
Hello,
Just stumble on this error (
JsonWriterException: illegal char sequence of surrogate pair
) while marshalling a large data structure containing the original file names of a real filesystem (with probably a bad file name somewhere it seems).I've tried with
withEscapeUnicode
true and false but the result is the same. What can I do ?Here is the back trace:
Jdk:
openjdk 17.0.8 2023-07-18 LT
Scala:
2.13.11
Jsoniter:
2.21.3
Thanks
The text was updated successfully, but these errors were encountered: