-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for escape: :binary_safe #174
Comments
I'm not sure I understand how would this be different from the |
I wanted to escape
But if you tell me this is invalid JSON, then please go ahead and close this, as it wouldn't make sense :) |
Yes, JSON only accepts UTF8, and only escapes in the form of |
Well, the strings are indeed invalid, so it is either showing gibberish or a replacement char, might as well go for a replacement char, so we can close this as a duplicate of #12. :) Thank you! |
Would you support a escaping mode that escapes anything that is not valid Unicode as
\x
?Our use case is listed here: livebook-dev/livebook#2158 - the idea is that we need to send any user result or error messages to the client, and if the user gives or fetches malformed data, encoding it incorrectly and sending some feedback is better than crashing.
The text was updated successfully, but these errors were encountered: