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.
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.