News for hackers. Stuff that matters.
Re:Show HN: Free boring character counter but with modern UI by MajorBaguette on Tuesday March 04, 2025 @02:13PM (#43258783)
Some emojis require two UTF-16 code units so yep, standard

Thanks btw, I made this one as a test to see how it could perform as I can't stand terrible UI ones. I'll probably launch more. What'd you like to see next ?

Re:Show HN: Free boring character counter but with modern UI by amake on Wednesday March 05, 2025 @07:42AM (#43265781)
> Some emojis require two UTF-16 code units so yep, standard

But not acceptable in a "character counter", in my opinion. What exactly is the use case for this counter, since it won't align with anyone's real-world intuition for the meaning of "character"?

Re:Show HN: Free boring character counter but with modern UI by MajorBaguette on Wednesday March 05, 2025 @08:01AM (#43265895)
You're actually right, I didn't think of this.

My counter is based on JS .length and can get up to 11 characters for specific emojis while X count all emojis as 2 characters.

Thanks for highlighting this