The topic of Unicode and email is of great relevance today and has been the subject of numerous studies and debates over time. The importance of Unicode and email lies in its impact on various aspects of daily life, from health to the economy. Throughout history, Unicode and email has played a fundamental role in society, influencing the way people relate to each other and the environment around them. In this article, different perspectives on Unicode and email will be explored, analyzing its impact on society and its relevance in today's world.
Many email clients now offer some support for Unicode. 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:
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.
RFC 6531 provides a mechanism for allowing non-ASCII email addresses encoded as UTF-8 in the SMTP[3] and LMTP protocols.
To use Unicode in certain email header fields, e.g. subject lines, sender and recipient names, the Unicode text has to be encoded using a MIME "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:
As with all encodings apart from US-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 of base64) or, for some languages and types of text, heavily size-inefficient (in the case of quoted-printable).
Some document formats, such as HTML, PostScript and Rich 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 use HTML 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).