代码之家  ›  专栏  ›  技术社区  ›  E.Mert

Windows Phone-Web浏览器任务特殊字符问题

  •  2
  • E.Mert  · 技术社区  · 11 年前

    我正在这样做:

    WebBrowserTask task = new WebBrowserTask();
    task.URL = Uri.EscapeDataString("http://m.asd.com/search.html?q=" + "Çerez adını verdiğimiz");
    task.Show();
    

    但浏览器显示:

    enter image description here

    EscapeDataString 使“±”出现,但不用于“”和“§”。

    我该如何解决这个问题?

    我尝试过这个解决方案,但没有帮助:

    Problem with Uri.EscapeUriString() regarding accented characters

    谢谢

    1 回复  |  直到 7 年前
        1
  •  1
  •   Shivangi Gupta    11 年前

    task.URL已弃用。使用task.Uri。为我在谷歌搜索工作。

    task.Uri = new Uri("http://www.google.com/search?q=" + "Çerez adını verdiğimiz");
    

    希望能有所帮助。