Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: length() miscounting UTF8 characters?by wjw (Priest) |
on Apr 27, 2014 at 21:49 UTC ( [id://1084049]=note: print w/replies, xml ) | Need Help?? |
Having no experience with this, I thought I would explore a bit. So I did the following:
Seems split sees those letters as two chars also, which makes sense now that I think of it... . Guess I have some things to learn about UTF8! Thanks for the opportunity! Sorry this is not all that helpful. Suppose one could take the character count and just divide by two ... ... Update: Might also take a look at CPAN Test UTF8 and related...
...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...
In Section
Seekers of Perl Wisdom
|
|