String length

Byte Length

say 'møøse'.encode('UTF-8').bytes;

Character Length

say 'møøse'.codes;

Grapheme Length

say 'møøse'.chars;

Last updated