Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想urldecode,除了%20字符。我该如何做到这一点?
%20
您是否考虑过在解码后进行字符串替换?例如
string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");
使用方法HttpUtility.HtmlDecode(myEncodedString, myWriter);
HttpUtility.HtmlDecode(myEncodedString, myWriter);