Count UTF-16 length, code points, and UTF-8 byte size.
str.length).All counts local.
No normalization; equivalent composed forms counted separately.
Looking for broader guides and best practices? Visit the ToolsAreUs Blog for indexes (like the full tool list) and articles (e.g. secure password generation).