Decode an UTF8 email header

前端 未结 5 1579
北海茫月
北海茫月 2020-12-15 04:40

I have an email subject of the form:

=?utf-8?B?T3.....?=

The body of the email is utf-8 base64 encoded - and has decoded fine. I am current

5条回答
  •  星月不相逢
    2020-12-15 05:09

    Check out RFC2047. The 'B' means that the part between the last two '?'s is base64-encoded. The 'utf-8' naturally means that the decoded data should be interpreted as UTF-8.

提交回复
热议问题