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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant