Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: The “real length" of UTF8 strings

by betterworld (Curate)
on Sep 23, 2008 at 21:54 UTC ( [id://713320]=note: print w/replies, xml ) Need Help??


in reply to Re^2: The “real length" of UTF8 strings
in thread The “real length" of UTF8 strings

You're right. I misunderstood the question and did not realize that we are looking for the "visual length".

Well, I think it depends on the font then, doesn't it?

  • Comment on Re^3: The “real length" of UTF8 strings

Replies are listed 'Best First'.
Re^4: The “real length" of UTF8 strings
by moritz (Cardinal) on Sep 24, 2008 at 07:59 UTC
    Well, I think it depends on the font then, doesn't it?

    Maybe, but there are double-width characters that even fixed-width fonts display with the width of two normal characters (like the ones in the OP).

Re^4: The “real length" of UTF8 strings
by Anonymous Monk on Sep 24, 2008 at 04:21 UTC

    Yes betterworld, I should have choosen a better title like "the visual length of UTF8 strings" instead of the "real length" which leads to confusion.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://713320]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2026-01-15 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.