News for hackers. Stuff that matters.
Re:TIL the assumption that string length does not change whe... by belval on Monday November 22, 2021 @01:18PM (#29309761)
I used to say the same thing, but then I was hired at a big company to work on products that needed to handle Arabic, Thai, Devanagari and Bengali.

They don't have a proper concept of characters and diacritics count as a character, not as an accent so you have verticality in a string!

I've come to respect the unicode spec as something with a lot of inherent complexity that you have to understand to work with. Your inner voice will scream "there has to be a better way" all the way through the project, but there actually isn't, you just have to accept that human language and writing is complex and representing it in software is equally complex.

Re:TIL the assumption that string length does not change whe... by ASalazarMX on Monday November 22, 2021 @01:54PM (#29310220)
I understand that representing human languages is even more complex than I suppose, it's just that the article posted is a tweet surprised that a German word is one character wider in uppercase. It was not about graphic representation but number of characters.