in reply to
Re: length() miscounting UTF8 characters?
in thread length() miscounting UTF8 characters?
Using the length function to count unicode characters is a bug waiting to happen.
Well, all perl builtins work at the codepoint level, including length. Depending on your definition of "character", that might or might not be what the OP wants.
I've attempted to implement "extended grapheme cluster" (that is, any base char + modifiers is considered a "character") logic in Perl6::Str. Feedback very welcome :-).