Skip to content

Commit 20f95fc

Browse files
committed
doc utf8-c8
1 parent f643d01 commit 20f95fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/Type/Blob.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Applies an encoding to turn the blob into a L<Str|/type/Str>.
6868
my Blob $blob = "string".encode('utf-8');
6969
say $blob.decode('utf-8'); # OUTPUT: «string␤»
7070
71+
On malformed utf-8 C<.decode> will throw X::AdHoc. To handle sloppy utf-8 use
72+
C<utf8-c8>.
73+
7174
=head2 method subbuf
7275
7376
Defined as:

0 commit comments

Comments
 (0)