Introducing "byte strings" to Rust: a string type that is not required to be valid UTF-8.https://github.com/BurntSushi/bstr
-
-
Replying to @burntsushi5
Is this crate potentially helpful for applications that want to accept inputs in multiple encodings? Could be helpful to note how it relates to the "encoding" crate, if at all.
1 reply 0 retweets 0 likes -
Replying to @dginev
I don't think so. I'm not sure i understand where the confusion lies. Byte strings are just bytes, which are conventionally interpreted as one specific encoding: utf8.
1 reply 0 retweets 0 likes
Replying to @burntsushi5 @dginev
If you want to accept multiple encodings, then you need a crate like encoding or encoding_rs. There is nothing in bstr that will do this for you.
2:39 AM - 3 Apr 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.