Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Devrant too, I assume it's because they both cut the strings at n bytes and so multi-byte utf-8 codepoints get sliced into an invalid byte.
-
Well, code monkeys normally don't know about grapheme clusters. You have to provide them with libs and templates that do the right thing - or they happily butcher your text, eat it and create abstract cave drawings from the remains...
-
@Oktokolo to be fair there is no point in writing the same emoji handling code in 386283 different companies instead of using a library
-
@piratefox Well, in large companies, yes actually. You know. Code safety and such
-
@ScriptCoded if we talk about FAANG maybe, if the library is open source and we’re not talking about FAANG I’m not so sure
Edit: faang or banks
Related Rants
So this is how YouTube handles overflow/trims text 🤭
rant
unicode
trimmg