1Encode::Unicode::UTF7(3U)ser Contributed Perl DocumentatiEonncode::Unicode::UTF7(3)
2
3
4

NAME

6       Encode::Unicode::UTF7 -- UTF-7 encoding
7

SYNOPSIS

9           use Encode qw/encode decode/;
10           $utf7 = encode("UTF-7", $utf8);
11           $utf8 = decode("UTF-7", $ucs2);
12

ABSTRACT

14       This module implements UTF-7 encoding documented in RFC 2152.  UTF-7,
15       as its name suggests, is a 7-bit re-encoded version of UTF-16BE.  It is
16       designed to be MTA-safe and expected to be a standard way to exchange
17       Unicoded mails via mails.  But with the advent of UTF-8 and 8-bit
18       compliant MTAs, UTF-7 is hardly ever used.
19
20       UTF-7 was not supported by Encode until version 1.95 because of that.
21       But Unicode::String, a module by Gisle Aas which adds Unicode supports
22       to non-utf8-savvy perl did support UTF-7, the UTF-7 support was added
23       so Encode can supersede Unicode::String 100%.
24

In Practice

26       When you want to encode Unicode for mails and web pages, however, do
27       not use UTF-7 unless you are sure your recipients and readers can
28       handle it.  Very few MUAs and WWW Browsers support these days (only
29       Mozilla seems to support one).  For general cases, use UTF-8 for
30       message body and MIME-Header for header instead.
31

SEE ALSO

33       Encode, Encode::Unicode, Unicode::String
34
35       RFC 2781 <http://www.ietf.org/rfc/rfc2152.txt>
36
37
38
39perl v5.32.0                      2020-12-02          Encode::Unicode::UTF7(3)
Impressum