class utf8

Mutable uint8 buffer for utf8 binary data
class utf8 does Blob[uint8] is repr('VMArray') {}

A utf8 is a subtype of Blob which is specifically uint8 data for holding UTF-8 encoded text.

my utf8 $b = "hello".encode;
    say $b[1].fmt("0x%X"); # OUTPUT: «0x65␀»

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.