Decode escaped Url without using HttpUtility.UrlDecode

前端 未结 8 1728
盖世英雄少女心
盖世英雄少女心 2020-12-05 09:52

Is there any function that converts an escaped Url string to its unescaped form? System.Web.HttpUtility.UrlDecode() can do that job but I don\'t want to add a r

8条回答
  •  悲哀的现实
    2020-12-05 10:22

    If you are using .NET 4.0 or later, you can use WebUtility.UrlDecode which works with client profile and also correctly processes plus signs (see this discussion).

提交回复
热议问题