如何更换所有20%在C#中的空间 [英] How do I replace all the spaces with %20 in C#
本文介绍了如何更换所有20%在C#中的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用C#,必须有在.NET框架的东西,应该有助于使一个字符串转换为URL,对吧?
I want to make a string into a URL using C#, there must be something in the .NET framework that should help, right?.
推荐答案
我相信你正在寻找<一href=\"https://msdn.microsoft.com/en-us/library/system.uri.escapedatastring(v=vs.110).aspx\">Uri.EscapeDataString.
System.Uri.EscapeDataString(string url)
这篇关于如何更换所有20%在C#中的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文