标签: c# .net urldecode
除了%20字符外,我想要urldecode。我该如何做到这一点?
%20
答案 0 :(得分:1)
您是否考虑过在解码后进行字符串替换?例如
string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");
答案 1 :(得分:0)
使用方法HttpUtility.HtmlDecode(myEncodedString, myWriter);
HttpUtility.HtmlDecode(myEncodedString, myWriter);