Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAMEEncode::Unicode::UTF7 -- UTF-7 encoding
use Encode qw/encode decode/; $utf7 = encode("UTF-7", $utf8); $utf8 = decode("UTF-7", $ucs2);
ABSTRACTThis module implements
UTF-7encoding documented in
UTF-7,as its name suggests, is a 7-bit re-encoded version of
UTF-16BE.It is designed to be MTA-safe and expected to be a standard way to exchange Unicoded mails via mails. But with the advent of
UTF-8and 8-bit compliant MTAs,
UTF-7is hardly ever used.
UTF-7was not supported by Encode until version 1.95 because of that. But Unicode::String, a module by Gisle Aas which adds Unicode supports to non-utf8-savvy perl did support
UTF-7support was added so Encode can supersede Unicode::String 100%.
In PracticeWhen you want to encode Unicode for mails and web pages, however, do not use
UTF-7unless you are sure your recipients and readers can handle it. Very few MUAs and
WWWBrowsers support these days (only Mozilla seems to support one). For general cases, use
UTF-8for message body and MIME-Header for header instead.
SEE ALSOEncode, Encode::Unicode, Unicode::String