电子邮件主题中的非英语语言使用什么编码?

我正在编写一个规范,基本上需要在电子邮件中的ASCII字符。 我记得电子邮件可以有一个外语编码的主题,但我不知道是什么编码被称为。

我不认为这个主题的编码和说UTF-8或UTF-16一样简单,因为其他的变化可能存在。

什么编码可以用于电子邮件主题行?

没有MIME支持(可选)的电子邮件由RFC 5322定义,只允许“可打印的”ASCII字符。 MIME扩展了这个标准,允许某些字段(包括主题)的其他编码scheme。

编码标题时,使用“编码字”方法 :

表单是:“=?charset?encoding?encoding text?=”。

charset may be any character set registered with IANA. Typically it would be the same charset as the message body. encoding can be either "Q" denoting Q-encoding that is similar to the quoted-printable encoding, or "B" denoting base64 encoding. encoded text is the Q-encoded or base64-encoded text. An encoded-word may not be more than 75 characters long, including charset, encoding, encoded text, and delimiters. If it is desirable to 

编码比适合75个字符的编码字更多的文本,可以使用多个编码字(由CRLF SPACE分隔)。