The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MIME::EcoEncode - MIME Encoding (Economical)

SYNOPSIS

 use MIME::EcoEncode;
 $encoded = mime_eco($str, 'UTF-8');        # encode utf8 string
 $encoded = mime_eco($str, 'UTF-8?Q');      #   ditto ("Q" encoding)
 $encoded = mime_eco($str, 'ISO-8859-1');   # encode iso-8859-1 string
 $encoded = mime_eco($str, 'ISO-8859-1?Q'); #   ditto ("Q" encoding)
 $encoded = mime_eco($str, 'GB2312');       # encode euc-cn string
 $encoded = mime_eco($str, 'EUC-KR');       # encode euc-kr string
 $encoded = mime_eco($str, 'Big5');         # encode big5 string
 $encoded = mime_eco($str, 'ISO-2022-JP');  # encode 7bit-jis string

DESCRIPTION

This module implements RFC 2047 Mime Header Encoding.

OPTIONS

  $encoded = mime_eco($str, $charset, $lf, $bpl, $mode, $lss);
               # $charset : 'UTF-8', 'UTF-8?Q',
               #            'ISO-8859-1' .. 'ISO-8859-16',
               #            'ISO-8859-1?Q' .. 'ISO-8859-16?Q',
               #            'GB2312', 'EUC-KR', 'Big5' or 'ISO-2022-JP'
               #            (default: 'UTF-8')
               # $lf      : line feed (default: "\n")
               # $bpl     : bytes per line (default: 76)
               # $mode    : 0 : unstructured header
               #            1 : structured header
               #            2 : auto (Subject or Comments ? 0 : 1)
               #            (default: 2)
               # $lss     : length of security space (default: 25)

SEE ALSO

For more information, please visit http://www.nips.ac.jp/~murata/mimeeco/

AUTHOR

MURATA Yasuhisa <murata@nips.ac.jp>

COPYRIGHT

Copyright (C) 2011-2012 MURATA Yasuhisa

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.