Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 string length_bytes() #2770

Closed
Vince7778 opened this issue Aug 29, 2024 · 0 comments · Fixed by #2775
Closed

UTF-8 string length_bytes() #2770

Vince7778 opened this issue Aug 29, 2024 · 0 comments · Fixed by #2775
Labels
enhancement New feature or request expression A new expression good first issue Good for newcomers

Comments

@Vince7778
Copy link
Contributor

After the bugfix in #2579, we no longer have a way to get the length of a string in bytes. It would be nice to have that ability back.

This is necessary because in UTF-8, a character may be represented by more than one byte. For instance, the character "😉" is encoded in 4 bytes.

@Vince7778 Vince7778 added enhancement New feature or request expression A new expression good first issue Good for newcomers labels Aug 29, 2024
@jaychia jaychia closed this as completed in 6fe408c Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request expression A new expression good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant