【问题标题】:Windows Phone equivalent of DontUnescapePathDotsAndSlashes for encoded urlsWindows Phone 相当于 DontUnescapePathDotsAndSlashes 编码的 url
【发布时间】:2016-08-13 00:08:24
【问题描述】:

【问题讨论】:

  • 这是 Windows Phone Silverlight 还是 WinRT?我无法使用 WinRT 版本重现该行为。其实你还是可以在项目根目录下创建app.config,填上stackoverflow.com/questions/11034569/…中提到的值。
  • 8.0 所以 Silverlight。是的,我可以将 app.config 添加到项目中,但它什么也不做。
  • 别忘了这是HTTPS,所以需要把name="http"改成name="https"

标签: c# xaml windows-phone-8 uri


【解决方案1】:

这是 .net 中的可怕错误,请参见例如GETting a URL with an url-encoded slash

当路径中的%2f 未转义为/

我找到了解决方案。尝试使用以下正文将 WebBrowser 组件导航到字符串:<html><body><scirpt type="text/javascript">window.location = "url";</script></body></html> 其中url 是您的原始网址。

【讨论】:

    猜你喜欢
    • 2015-06-19
    • 1970-01-01
    • 2011-06-10
    • 1970-01-01
    • 1970-01-01
    • 2013-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多