openwebkitsharp 打不开本地网页文件

Posted pengxinglove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openwebkitsharp 打不开本地网页文件相关的知识,希望对你有一定的参考价值。

Its look like you put wrong url. You can check it by

Uri.IsWellFormedUriString

One of the reasons - you put the string with national symbols.

In this case the answers before do not resolve you problem, because you also should encode url.

You can use System.Web.HttpUtility.UrlEncode for it and then apply a solution described before by X Enterprises (but you should not replace spaces - it would be already done by encoding) .

But the easiest way to get correct url is

string url = new Uri(pathToFile, UriKind.Absolute).AbsoluteUri;

以上是关于openwebkitsharp 打不开本地网页文件的主要内容,如果未能解决你的问题,请参考以下文章

我的ie浏览器为啥打不开本地的网页文件啊?

我的.sql文件打不开了,怎么回事

IE浏览器能上网就是打不开本地HTML文件,打开也是乱码,怎么处理?

用了谷歌访问助手,还是打不开网页,怎么办?

网站传到服务器后有些图片打不开是啥原因?在本地预览的时候全部可以打开, 我的网址www.xhpackage.com

java出现问题打不开jnlp文件