MAN page from Mandriva 2007 perl-5.8.8-7.1mdv2007.0.x86_64.rpm
Encode::Unicode::UTF7
Section: Perl Programmers Reference Guide (3pm)
Updated: 2001-09-21
Index NAME
Encode::Unicode::UTF7 -- UTF-7 encoding
SYNOPSIS
use Encode qw/encode decode/; $utf7 = encode("UTF-7", $utf8); $utf8 = decode("UTF-7", $ucs2); ABSTRACT
This module implements
UTF-7 encoding documented in
RFC 2152.
UTF-7,as its name suggests, is a 7-bit re-encoded version of
UTF-16BE. Itis designed to be MTA-safe and expected to be a standard way toexchange Unicoded mails via mails. But with the advent of
UTF-8 and8-bit compliant MTAs,
UTF-7 is hardly ever used.
UTF-7 was not supported by Encode until version 1.95 because of that.But Unicode::String, a module by Gisle Aas which adds Unicode supportsto non-utf8-savvy perl did support UTF-7, the UTF-7 support was addedso Encode can supersede Unicode::String 100%.
In Practice
When you want to encode Unicode for mails and web pages, however, donot use
UTF-7 unless you are sure your recipients and readers canhandle it. Very few MUAs and
WWW Browsers support these days (onlyMozilla seems to support one). For general cases, use
UTF-8 formessage body and MIME-Header for header instead.
SEE ALSO
Encode, Encode::Unicode, Unicode::String
RFC 2781 <http://www.ietf.org/rfc/rfc2152.txt>
Index
- NAME
- SYNOPSIS
- ABSTRACT
- In Practice
- SEE ALSO
This document was created byman2html,using the manual pages.