Skip to content

Conversation

@probeldev
Copy link

Issue: len() returns incorrect length for UTF-8 strings with non-ASCII characters
Fix: Use utf8.RuneCountInString() instead of len() to properly count Unicode code points
Impact: Now correctly handles Russian, emoji, and other multi-byte characters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant