"๐จโ๐ฉโ๐งโ๐ฆ".Length // NOT 1
Why
-
UTF-16 code units
-
Grapheme clusters
โ Fix
Use text element enumeration for user-visible length.
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
"๐จโ๐ฉโ๐งโ๐ฆ".Length // NOT 1
UTF-16 code units
Grapheme clusters
Use text element enumeration for user-visible length.