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
Although 2.9 improves handling of source references, and works nicely for JSON input, handling of byte sources (like byte[]) is problematic for binary formats like Smile and CBOR as it tries to decode a snippet in UTF-8. This won't work and instead we should either:
Display snippet in hex instead, OR
Just not display anything
Determination for this could be done in multiple ways; for example:
Use heuristics to see if first N bytes are UTF-8 safe
Use existing (or, possibly added) calls to determine if format is textual/binary
Either way, it'd be good to display UTF-8 contents for textual formats; and avoid problems for binary formats.
The text was updated successfully, but these errors were encountered:
Although 2.9 improves handling of source references, and works nicely for JSON input, handling of byte sources (like
byte[]
) is problematic for binary formats like Smile and CBOR as it tries to decode a snippet in UTF-8. This won't work and instead we should either:Determination for this could be done in multiple ways; for example:
Either way, it'd be good to display UTF-8 contents for textual formats; and avoid problems for binary formats.
The text was updated successfully, but these errors were encountered: