Live data from Hacker News

What every software developer must know about Unicode in 2023

tonsky.me

571–572 of 572 posts

Re: What every software developer must know about Unicode in 2023

#571

There is another 'modern' language that does utf8 right and has done it right for a long time. I know it's mostly fallen out of favour, but we're still out here: Perl. $ perl -wle 'use utf8; print length("");' 1 Without use utf8: $ perl -wle 'print length("");' 3 It's funny: after Perl fell out of favour, is when it got all its best stuff. It's still my preferred language for just about everything.

[flagged]

Re: What every software developer must know about Unicode in 2023

#572
post #527

Earlier quoted context omitted.

It would probably expose the implementation too much, but if you wanted combined characters to be split apart, I would expect "ö" to be removed in one go, whereas an "o" with a combined diaeresis (No idea if it's called that, I got the name from the code chart) would take two backspaces.

The mark with two dots can refer to various things. Dieresis (Greek word we use in English) is a phenomenon where two vowels don’t merge together to make a new sound. Co-operate, coöperate, or cooperate. You could also shove a glottal stop in there but this is much less extreme. The diaresis marker isn’t used much in the USA. Another common example is naïve. Umlaut (German word) is the opposite phenomenon: the first…

If you want to refer to the symbol in a neutral way there is the term trema
Post reply on HN