Decoding UTF-8 email subject?

后端 未结 3 750
深忆病人
深忆病人 2021-01-04 11:40

I have a string in this form: =?utf-8?B?zr...

And I want to get the name of the file in proper UTF-8 encoding. Is there a library method somewhere in ma

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 12:05

    MimeUtility.decodeText is working for me,

    eg,

    MimeUtility.decodeText("=?UTF-8?B?4K6q4K+N4K6q4K+K4K604K6/4K614K+BIQ==?=");
    

提交回复
热议问题