I really like Ruby's solution to the problem (I worked on Rails encodings around this tweet)
-
-
the pattern is like: body.force_encoding(req.content_type).encode! (in Rust you'd get a Result of course)
-
does ruby bother to follow unicode tables (e.g. Ensuring various flavours of é are "equal")?
-
you can do this tho. Refinements are like traits in Rust: you gotta import them with `using`.pic.twitter.com/CKaVMybHgY
End of conversation
New conversation -
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.