IM::EncDec.3pm

Langue: en

Autres versions - même langue

Version: 2010-02-15 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

IM::EncDec - MIME header encoder/decoder

SYNOPSIS

  use IM::EncDec;
 
  $mime_header_encoded_string =
      mime_encode_string(string, iso7bit, iso8bit);
  $string =
     mime_decode_string(mime_header_encoded_string);
 
  $B_encoded_string = b_encode_string(string);
  $string = b_decode_string(B_encoded_string);
 
  $Q_encoded_string = q_encode_string(string);
  $string = q_decode_string(Q_encoded_string);
 
 

DESCRIPTION

The IM::EncDec module is encoder/decoder for MIME header.

This modules is provided by IM (Internet Message).

EXAMPLES

  $_ = "JAPANESE (Kazuhiko Yamamoto)";
  mime_encode_string($_, 'iso-2022-jp', 'iso-8859-1');
      => =?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=
          (Kazuhiko Yamamoto)
 
  s/\n[\t ]+//g;
  print mime_decode_string($_), "\n";
      => "JAPANESE (Kazuhiko Yamamoto)"
 
 
IM (Internet Message) is copyrighted by IM developing team. You can redistribute it and/or modify it under the modified BSD license. See the copyright file for more details.