News for hackers. Stuff that matters.
Re:UTF-8 Everywhere by toast0 on Tuesday April 14, 2020 @06:51PM (#22872440)
> How do I correctly truncate the string?

Refuse to accept a string that is overlong, and require an interactive user (hopefully one literate in the language) to truncate it for you. In a non-interactive context, you can't.

There are no comments on this comment yet.