We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm sorry if I misunderstood the purpose of utf8proc_charwidth, I thought it'd return the number of bytes required for a given codepoint.
Example, the letter é in UTF-8 is two bytes long (value of 233 in unicode) but utf8proc_charwidth(233) always return 1.
utf8proc_charwidth(233)
Did I miss something or there is no function to get the number of bytes a codepoint require?
The text was updated successfully, but these errors were encountered:
I think you have this in mind:
julia> ncodeunits("é") 2
I think the other has to do with with on the screen, if I recall to support Chinese.
Sorry, something went wrong.
charwidth is an approximate on-screen width in fixed-width fonts, not the number of code units.
No branches or pull requests
Hi,
I'm sorry if I misunderstood the purpose of utf8proc_charwidth, I thought it'd return the number of bytes required for a given codepoint.
Example, the letter é in UTF-8 is two bytes long (value of 233 in unicode) but
utf8proc_charwidth(233)
always return 1.Did I miss something or there is no function to get the number of bytes a codepoint require?
The text was updated successfully, but these errors were encountered: