【发布时间】:2012-03-05 22:33:13
【问题描述】:
在我的 ASP.Net 应用程序工作过程中,我需要对字符串做一些工作,这相当于
=?utf-8?B?SWhyZSBCZXN0ZWxsdW5nIC0gVmVyc2FuZGJlc3TDpHRpZ3VuZyAtIDExMDU4OTEyNDY=?=
如何将其解码为正常的人类语言?
提前致谢!
更新:
Convert.FromBase64String() 不适用于字符串,等于
=?UTF-8?Q?Bestellbest=C3=A4tigung?=
我得到The format of s is invalid. s contains a non-base-64 character, more than two padding characters, or a non-white space-character among the padding characters. 异常。
更新:
更新:
那是什么字符串编码:Nweiß???
【问题讨论】:
-
对我来说看起来像 base64。尝试使用 base64 解码,看看是否能得到你的 utf-8 字符串。
-
Nweiß是一个Html实体,可以用HttpUtility.HtmlDecode HttpUtility.HtmlEncode解码/编码。
标签: c# utf-8 base64 mime email-headers