-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
json cannot decode non-BMP character escapes #13064
Comments
kmcallister
added a commit
to servo/html5ever
that referenced
this issue
Mar 22, 2014
kmcallister
added a commit
to servo/html5ever
that referenced
this issue
Mar 26, 2014
I'm working on this. |
Nical has a long open PR with a rewrite of JSO to make it streaming. Might be good to coordinate changes here |
bors
added a commit
that referenced
this issue
Apr 13, 2014
This fixes two separate issues related to character encoding. * Add `encode_utf16` to the `Char` trait, analogous to `encode_utf8`. `&str` already supports UTF-16 encoding but only with a heap allocation. Also fix `encode_utf8` docs and add tests. * Correctly decode non-BMP hex escapes in JSON (#13064).
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Aug 23, 2022
Log rustfmt parsing errors as warnings We unconditionally pass an edition parameter to rustfmt, for some crates this might fail rustfmt so instead of swallowing the error, at least Log it on a level that is logged by default so users won't be completely confused about it. See for context rust-lang/rust-analyzer#10209 Closes rust-lang/rust-analyzer#10209
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 11, 2024
…rednet Reduce the size of lintcheck JSON output Saves about 80% of the size by picking out what we need rather than serialising the whole diagnostic r? `@xFrednet` changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per RFC 4627:
(This is a legacy of JavaScript's UCS-2 string semantics.)
Rust's
serialize::json
does not decode these escapes properly:produces
The text was updated successfully, but these errors were encountered: