Lines Matching defs:encode

23   decode  decode_utf8  encode  encode_utf8 str2bytes bytes2str
193 sub encode {
252 use Encode qw(decode encode);
254 $octets = encode('UTF-8', $characters, Encode::FB_CROAK);
332 =head3 encode
334 $octets = encode(ENCODING, STRING[, CHECK])
348 $octets = encode("iso-8859-1", $string);
350 B<CAVEAT>: When you run C<$octets = encode("UTF-8", $string)>, then
353 encode anything, the UTF8 flag on the result is always off, even when it
358 C<str2bytes> may be used as an alias for C<encode>.
366 Perl's internal form. As with encode(),
417 Besides L</decode> and L</encode>, other methods are
435 find_mime_encoding("utf-8"); # returns encode object "utf-8-strict"
468 $data = encode("UTF-8", decode("iso-8859-1", $data));
478 $octets = encode($to, decode($from, $octets), $check);
482 followed by C<encode> as follows:
484 $octets = encode($to, decode($from, $octets, $check_from), $check_to);
493 C<$octets = encode("UTF-8", $string)>.
495 Equivalent to C<$octets = encode("utf8", $string)>. The characters in
586 C<PerlIO> layer to decode and encode directly via a filehandle. The
651 with a I<substitution character>. When you encode, I<SUBCHAR> is used.
709 C<Encode::FB_PERLQQ> puts C<encode> and C<decode> into C<perlqq> fallback mode.
713 utf8. When you encode, C<\x{I<HHHH>}> will be inserted, where I<HHHH> is
744 source string to encode() or decode() will be overwritten in place.
753 $ascii = encode("ascii", $utf8, sub{ sprintf "<U+%04X>", shift });
917 encode("utf8", "\x{FFFF_FFFF}", 1); # okay
918 encode("UTF-8", "\x{FFFF_FFFF}", 1); # croaks