in reply to length() and Unicode
It sounds like the input is being treated as a string of bytes (as opposed to a string of characters). Use Encode to convert it to characters. (_utf8_on might to the trick if the data is in UTF-8.)
( My statement was accidently negated. Fixed. )
( Thelonius's solution is better. )
|
|---|