Windows Phone 等同于编码 url 的 DontUnescapePathDotsAndSlashes
Windows Phone equivalent of DontUnescapePathDotsAndSlashes for encoded urls
我的问题与 Keep url encoded while using URI class 相同,但关于 Windows Phone 的情况有所不同。
我有一个 URL 用于包含 url 编码部分的支付门,看起来像这样
当我尝试从中创建一个 Uri
以与 WebBrowser
一起使用时,它变为
这是错误的。根据提到的问题,解决方案是在 app.config 中进行更改。但是 Windows Phone apps.app.config 中没有 app.config
那么有没有办法强制Uri
不解码(和拧)WindowsPhone中的url?
这是 .net 中的可怕错误,请参见例如GETting a URL with an url-encoded slash
当路径中的 %2f
未转义为 /
我找到了解决办法。尝试使用此主体将 WebBrowser 组件导航到字符串:<html><body><scirpt type="text/javascript">window.location = "url";</script></body></html>
其中 url
是您的原始 url.
我的问题与 Keep url encoded while using URI class 相同,但关于 Windows Phone 的情况有所不同。
我有一个 URL 用于包含 url 编码部分的支付门,看起来像这样
当我尝试从中创建一个 Uri
以与 WebBrowser
一起使用时,它变为
这是错误的。根据提到的问题,解决方案是在 app.config 中进行更改。但是 Windows Phone apps.app.config 中没有 app.config
那么有没有办法强制Uri
不解码(和拧)WindowsPhone中的url?
这是 .net 中的可怕错误,请参见例如GETting a URL with an url-encoded slash
当路径中的 %2f
未转义为 /
我找到了解决办法。尝试使用此主体将 WebBrowser 组件导航到字符串:<html><body><scirpt type="text/javascript">window.location = "url";</script></body></html>
其中 url
是您的原始 url.