gpt4 book ai didi

c# - 如何解码可移植类库 (PCL) 中的 URL?

转载 作者:太空宇宙 更新时间:2023-11-03 21:34:55 25 4
gpt4 key购买 nike

我正在可移植类库 (PCL) 中寻找与 System.Web.HttpUtility.UrlDecode() 方法等效的方法,它可以针对所有支持的平台(.Net 4.0+、WP 7.5) + 和 Windows 8+)

最佳答案

这样做会:

var urlDecoded = Uri.UnescapeDataString(urlEncoded).Replace('+', ' ');

关于c# - 如何解码可移植类库 (PCL) 中的 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22246805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com