What is Nostr?
Joel Bennett /
npub18dq…9qnp
2024-10-21 15:49:14
in reply to nevent1q…qzpm

Joel Bennett on Nostr: Partly, since this was a .NET 4 problem. But also just legacy: [string] is UTF16, and ...

Partly, since this was a .NET 4 problem.

But also just legacy:

[string] is UTF16, and it's .Length is in [char] not code points or graphemes.

.NET 5 updated helpers (System.Globalization.StringInfo and friends) to be UAX compatible, but Windows PowerShell is v4 which is almost a decade older, and doesn't know about ZWJ and 0xFE0F combining emoji (for instance):

Author Public Key
npub18dqdtq38873745nxtqa2z54d6pfagzhespenkvqcwqsmyrlyp9rsqy9qnp