-
Notifications
You must be signed in to change notification settings - Fork 55
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
Encoding::decode_to_utf16 ? #24
Comments
It doesn't exist as a method on If there's a reason to believe that wishing to decode to UTF-16 in the non-streaming manner (with infallible allocation) has utility for Rust programs beyond one isolated case, then it would make sense to add UTF-16 variants of the non-streaming API to Rust, too. (Currently those variants are in C++ only.) What's the context of your function? That is, should we expect it to represent a recurring use case or a one-time oddity? |
I’ve used this in the Servo implementation of https://xhr.spec.whatwg.org/#json-response which takes a (By the way we’re switching Servo to encoding_rs: servo/servo#19073) |
I’ve just written this function:
Do you think it would belong as a method of
Encoding
?The text was updated successfully, but these errors were encountered: