![]() | MIME::CharsetMIME::Charset module contains charset informations for MIME. |
Download |
MIME::Charset Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Hatuka*nezumi - IKEDA Soji
- Publisher web site:
- http://search.cpan.org/~nezumi/MIME-Charset-0.044/Charset.pm
MIME::Charset Tags
MIME::Charset Description
MIME::Charset module contains charset informations for MIME. MIME::Charset module contains charset information for MIME.SYNOPSISGetting charset informations: use MIME::Charset qw(:info); $benc = body_encoding("iso-8859-2"); # "Q" $cset = canonical_charset("ANSI X3.4-1968"); # "US-ASCII" $henc = header_encoding("utf-8"); # "S" $cset = output_charset("shift_jis"); # "ISO-2022-JP"Translating text data: use MIME::Charset qw(:trans); ($text, $charset, $encoding) = header_encode( "xc9xc2xc5xaaxc0xdexc3xefxc5xaa". "xc7xd1xcaxaaxbdxd0xcexcfxb4xef", "euc-jp"); # ...returns (< converted >, "ISO-2022-JP", "B"); ($text, $charset, $encoding) = body_encode( "Collectioneur pathxe9tiquement ". "xe9clectique de dxe9chets", "latin1"); # ...returns (< original >, "ISO-8859-1", "QUOTED-PRINTABLE"); $len = encoded_header_len( "Perlxe8xa8x80xe8xaax9e", "b", "utf-8"); # 28Manipulating module defaults: use MIME::Charset; MIME::Charset::alias("csEUCKR", "euc-kr"); MIME::Charset::default("iso-8859-1"); MIME::Charset::fallback("us-ascii"); Requirements: · Perl
MIME::Charset Related Software