Lines Matching defs:decode
23 decode decode_utf8 encode encode_utf8 str2bytes bytes2str
181 sub decode {
252 use Encode qw(decode encode);
253 $characters = decode('UTF-8', $octets, Encode::FB_CROAK);
360 =head3 decode
362 $string = decode(ENCODING, OCTETS[, CHECK])
378 $string = decode("iso-8859-1", $octets);
380 B<CAVEAT>: When you run C<$string = decode("UTF-8", $octets)>, then $string
387 C<bytes2str> may be used as an alias for C<decode>.
397 $string = decode($name, $bytes);
404 $obj->decode($bytes);
413 my $string = $enc->decode($_);
417 Besides L</decode> and L</encode>, other methods are
463 $data = decode("iso-8859-1", $data); #2
468 $data = encode("UTF-8", decode("iso-8859-1", $data));
478 $octets = encode($to, decode($from, $octets), $check);
481 deliberately done that way. If you need minute control, use C<decode>
484 $octets = encode($to, decode($from, $octets, $check_from), $check_to);
507 C<$string = decode("UTF-8", $octets [, CHECK])>.
509 Equivalent to C<$string = decode("utf8", $octets [, CHECK])>.
586 C<PerlIO> layer to decode and encode directly via a filehandle. The
652 When you decode, the Unicode REPLACEMENT CHARACTER, code point U+FFFD, is
672 handy when you have to call C<decode> repeatedly in the case where your
679 $string .= decode($encoding, $buffer, Encode::FB_QUIET);
709 C<Encode::FB_PERLQQ> puts C<encode> and C<decode> into C<perlqq> fallback mode.
711 When you decode, C<\xI<HH>> is inserted for a malformed character, where
744 source string to encode() or decode() will be overwritten in place.
757 Fallback for C<decode> must return decoded string (sequence of characters)
759 example if you wish to decode octets as UTF-8, and use ISO-8859-15 as
762 $str = decode 'UTF-8', $octets, sub {
764 return decode 'ISO-8859-15', $tmp;
924 $s = decode("utf8", "\xf8\x88\x80\x80\x80");
928 $s = decode("UTF-8", "\xf8\x88\x80\x80\x80"); # U+FFFD
932 decode("UTF-8", "\xf8\x88\x80\x80\x80", FB_CROAK|LEAVE_SRC);