문제

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