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

Re: length() miscounting UTF8 characters?

by wjw (Priest)
on Apr 27, 2014 at 21:09 UTC ( [id://1084037]=note: print w/replies, xml ) Need Help??


in reply to length() miscounting UTF8 characters?

Would be kind of handy to have a few of those words you are reading in to test against... :-)

...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
  • Comment on Re: length() miscounting UTF8 characters?

Replies are listed 'Best First'.
Re^2: length() miscounting UTF8 characters?
by AppleFritter (Vicar) on Apr 27, 2014 at 21:21 UTC

    Certainly! Here's an excerpt:

    æ æð æða æðaber æðahnútur æðakölkun æðardúnn æðarfugl æðarkolla æðarkóngur æðarvarp æði æðimargur æðisgenginn æðiskast æðislegur æðrast æðri æðrulaus æðruleysi æðruorð æðrutónn æðstur æður æfa

    Which produces the following output:

    2 æ 4 æð 4 æð 4 æð 6 æðú 6 æðö 6 æðú 4 æð 4 æð 6 æðó 4 æð 4 æð 4 æð 4 æð 4 æð 4 æð 4 æð 4 æð 4 æð 4 æð 6 æðð 6 æðó 4 æð 4 æð 2 æ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found