http://www.perlmonks.org?node_id=713320


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 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.

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).