News for hackers. Stuff that matters.
Re:UTF-8 Everywhere by Tyr42 on Tuesday April 14, 2020 @05:09PM (#22871480)
https://play.rust-lang.org/?version=stable&mode=debug&editio...

Something like this? Check if each character pushes the byte total over the limit?

I think this might fail for combining characters though.

There are no comments on this comment yet.