I'm looking for the equivalent of System.Web.HttpUtility.UrlDecode() method in Portable Class Library (PCL) that can target all the supported platforms (.Net 4.0+, WP 7.5+ and Windows 8+)

有帮助吗?

解决方案

This will do:

var urlDecoded = Uri.UnescapeDataString(urlEncoded).Replace('+', ' ');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top