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

Consider chars using multiple unicode codepoints #41

Merged
merged 1 commit into from Sep 26, 2021

Conversation

Lireer
Copy link
Contributor

@Lireer Lireer commented Sep 26, 2021

The len method returns the number of bytes in the string. This can lead to incorrect column widths if the value contains codepoints consisting of multiple bytes, i.e. ü.

@alexhallam
Copy link
Owner

Thanks @Lireer. I did not know that! Love the PRs.

@alexhallam alexhallam merged commit 1b5456a into alexhallam:main Sep 26, 2021
@Lireer Lireer deleted the print-fix branch September 27, 2021 00:24
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.

None yet

2 participants