My question is the same as Keep url encoded while using URI class but regarding Windows Phone where things work differently.
I have a URL for the payment gate that contains a url encoded part and looks like this
when I try to create an Uri
from it to be used with WebBrowser
it changes to
which is wrong. According to the mentioned quetsion, the solution is to make a change in the app.config. But there is no app.config in Windows Phone apps.
So is there a way to force Uri
not to decode (and screw) the url in Windows Phone?
It is terribble bug in .net see eg GETting a URL with an url-encoded slash
When %2f
in path is unescaped to /
I found a solution. Try navigate WebBrowser component to string with this body: <html><body><scirpt type="text/javascript">window.location = "url";</script></body></html>
where url
is your original url.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.