News for hackers. Stuff that matters.
Re:Unicode is harder than you think by eviks on Wednesday July 26, 2023 @05:51AM (#36875155)
Count by grapheme clusters and stop right before it exceeds the limit?
Re:Unicode is harder than you think by zamadatix on Wednesday July 26, 2023 @10:11PM (#36888021)
Isn't that the length of the string? Also there are various things about Unicode that make doing this "right" for an input much harder than it sounds.
Re:Unicode is harder than you think by eviks on Thursday July 27, 2023 @12:19AM (#36888855)
string length is a poorly defined concept, but yes, counting real characters (grapheme clusters) counts

And what "various things" do you mean that are on top the char split?