【发布时间】:2015-11-02 13:53:32
【问题描述】:
我得到一个包含参数的 URL,其中一个参数是西里尔字母。
文档编号必须为 ЗП005637-1。 我试过下面的代码,但字符串仍然是那些字符 %u0417%u041f.
public static String DecodeUrlString(this String url)
{
String newUrl;
while ((newUrl = Uri.UnescapeDataString(url)) != url)
url = newUrl;
return newUrl;
}
不可能使用 HttpUtility。
【问题讨论】:
-
所以使用代码 from HttpUtility; referencesource.microsoft.com/#System.Web/Util/…