【发布时间】:2018-01-24 15:14:03
【问题描述】:
我正在使用 HttpUtility.UrlPathEncode 来编码 url。当命中编码的url结果是找不到页面时
HttpUtility.UrlPathEncode("http://example.com/Fundamentals of Data Structures C++")
编码的网址
http://example.com/Fundamentals%20Of%20Data%20Structures%20C++
找不到页面
请帮我解决这个问题
【问题讨论】:
-
如果你转到
"http://example.com/Fundamentals of Data Structures C++",页面是否正确打开?如果是,请查看您的路由设置。 -
我正在使用 URL 路由。如果使用 http:example.com/Fundamentals of Data Structures C++ 仍然找不到页面错误。如果使用没有任何特殊字符的编码网址,则可以正常工作
-
“没有任何特殊字符”你的意思是最后没有
++? -
请查看直播
http://www.booksbecho.in/Operation%20System%20Concepts%208Th%20Edition?Id=1948427714http://www.booksbecho.in/Fundamentals%20Of%20Data%20Structures%20C++?Id=1197287199
标签: asp.net