logoalt Hacker News

txdvlast Friday at 3:03 PM1 replyview on HN

There are also zero-space width characters, yeah utf is a rabbit hole


Replies

webprolast Friday at 3:20 PM

Emojis and other unicode characters may or may not be rendered as a single-width character. I've been splitting hairs and strings.

The tool currently counts any unicode character as a single-width one.