3
我想通過包含轉義字符的字符串實例化新的Uri。新的Uri保存轉義字符
Dim sUri as String = "http://foo.bar/path/to/file_with%2fpercent?query=params"
Dim uUri as New Uri(sUri)
Console.WriteLine(uUri)
>>>>
http://foo.bar/path/to/file_with/percent?query=params
我怎樣才能保持%2f
?
這裏是你的答案: http://stackoverflow.com/questions/2320533/system-net-uri-with-urlencoded-characters – 2012-08-22 18:25:44