Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Unicode and email

From Wikipedia, the free encyclopedia
Relationship between Unicode and email

Manyemail clients now offer some support forUnicode. Some clients will automatically choose between a legacy encoding and Unicode depending on the mail's content, either automatically[1] or when the user requests it.[2]

Technical requirements for sending messages containing non-ASCII characters by email include:

  • encoding of certain header fields (subject, sender's and recipient's names, sender's organization and reply-to name) and, optionally, body in a content-transfer encoding
  • encoding of non-ASCII characters in one of the Unicode transforms
  • negotiating the use ofUTF-8 encoding in email addresses and reply codes (SMTPUTF8)
  • sending the information about the content-transfer encoding and the Unicode transform used so that the message can be correctly displayed by the recipient(seeMojibake)

If the sender's or recipient's email address contains non-ASCII characters, sending a message also requires encoding these characters in a format that can be understood by mail servers.

Support in protocols

[edit]

RFC 6531 provides a mechanism for allowing non-ASCII email addresses encoded asUTF-8 in theSMTP[3] andLMTP protocols.

Message headers

[edit]

To use Unicode in certain email header fields, e.g. subject lines, sender and recipient names, the Unicode text has to be encoded using aMIME "Encoded-Word" with a Unicode encoding as the charset. To use Unicode in the domain part of email addresses,IDNA encoding must traditionally be used. Alternatively, SMTPUTF8[3] allows the use of UTF-8 encoding in email addresses (both in a local part and in domain name) as well as in a mail header section. Various standards had been created to retrofit the handling of non-ASCII data to the originally ASCII-only email protocol:

  • RFC 2047 provides support for encoding non-ASCII values such as real names and subject lines in email headers.[4]
  • RFC 5890 provides support for encoding non-ASCII domain names in theDomain Name System.[5]
  • RFC 6532 allows the use of UTF-8 in a mail header section.[6]

Message bodies

[edit]

As with all encodings apart fromUS-ASCII, when using Unicode text in email,MIME must be used to specify that a Unicode transformation format is being used for the text.

UTF-7, an obsolete encoding, had an advantage on obsolete non–8-bit clean networks over Unicode encodings in that it does not require a transfer encoding to fit within the 7-bit limits of legacy Internet mail servers. On the other hand,UTF-16 must be transfer encoded to fit the data format of SMTP. Although not strictly required,UTF-8 is usually also transfer encoded to avoid problems across 7-bit mail servers. MIME transfer encoding of UTF-8 makes it either unreadable as plain text (in the case ofbase64) or, for some languages and types of text, heavily size-inefficient (in the case ofquoted-printable).

Some document formats, such asHTML,PostScript andRich Text Format, have their own 7-bit encoding schemes for non-ASCII characters and can thus be sent without using any special email encodings.HTML email can useHTML entities to use characters from anywhere in Unicode even if the HTML source text for the email is in a legacy encoding (e.g. 7-bit ASCII).

See also

[edit]

References

[edit]
  1. ^"wanderlust/apel".GitHub. Retrieved2018-09-05.
  2. ^"Setting Outlook to Use UTF-8". Retrieved2018-09-05.
  3. ^abJiankang, Yao; Wei, Mao (February 2012)."SMTP Extension for Internationalized Email".tools.ietf.org. Retrieved2018-09-05.
  4. ^Moore, Keith (November 1996)."MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text".tools.ietf.org. Retrieved2018-09-05.
  5. ^Klensin, John C (August 2010)."Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework".tools.ietf.org. Retrieved2018-09-05.
  6. ^Abel, Yang; Shawn, Steele (February 2012)."Internationalized Email Headers".tools.ietf.org. Retrieved2018-09-05.

External links

[edit]
Unicode
Code points
Characters
Special purpose
Lists
Processing
Algorithms
Comparison of encodings
On pairs of
code points
Usage
Related standards
Related topics
Scripts and symbols in Unicode
Common and
inherited scripts
Modern scripts
Ancient and
historic scripts
Notational scripts
Symbols, emojis
Free software
Current
Discontinued
Proprietary
Freeware,
freemium
Retail
Shareware
Donationware
Discontinued
Related technologies
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Unicode_and_email&oldid=1315859507"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp