edusis / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
1 stars 1 forks source link

bug with navigation to address #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if  i navigate 
webkitbrowser1.navigate("http://www.one.co.il/League/Current/1,1,0,0/ליגת_ו
וינר"
since it has hebrew letters in the end it will not navigate if i navigate to 
the same address from a link click inside the  http://www.one.co.il/
it will navigate 

Original issue reported on code.google.com by meirb...@gmail.com on 1 Dec 2011 at 5:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
 also if i remove http:// and use  only www.one.co.il/League/Current/1,1,0,0/ליגת_ווינר it does navigate weird...

Original comment by meirb...@gmail.com on 1 Dec 2011 at 10:34

GoogleCodeExporter commented 9 years ago
very strange indeed...I will try to fix these bugs

Original comment by tsumalis96@gmail.com on 2 Dec 2011 at 12:12

GoogleCodeExporter commented 9 years ago
the same bug happens on local files when using  OpenDocument also

Original comment by meirb...@gmail.com on 7 Dec 2011 at 2:27

GoogleCodeExporter commented 9 years ago
What's the encoding that should be used to read these characters? Maybe if we 
change the string's encoding it will work.

Original comment by tsumalis96@gmail.com on 7 Dec 2011 at 3:50

GoogleCodeExporter commented 9 years ago
the Microsoft definitions of locale is 1037

Original comment by meirb...@gmail.com on 7 Dec 2011 at 4:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Maybe try using that encoding to convert the string to UTF-8 or Unicode and 
then try navigating to the new string.

Original comment by tsumalis96@gmail.com on 8 Dec 2011 at 12:11

GoogleCodeExporter commented 9 years ago
as i said if i remove "http://" from the start of the string it will navigate
the weird part is why its ok without http:// , i have tested the address with 
Skybound.Gecko 1.9 no issue there and in other browsers

Original comment by meirb...@gmail.com on 8 Dec 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Same problem here - I do store files locally as a cache and have a user who's 
name is Seán and so I am not able to access the files :(

Original comment by PidginSn...@gmail.com on 20 Feb 2012 at 5:15

GoogleCodeExporter commented 9 years ago
It must be a problem with the encoding of the string. I can't find a solution 
though. Does anybody know if there is a char (like L in C++) for C# that would 
change the encoding of the string? L doesn't work in C#.

Original comment by tsumalis96@gmail.com on 21 Feb 2012 at 8:28

GoogleCodeExporter commented 9 years ago
I solved this bug by auto removing http:// from the string before navigating 
you can
do the same with Replace("http://", "") it doesnt effect anything if i remove 
http

Original comment by meirb...@gmail.com on 23 Feb 2012 at 9:01

GoogleCodeExporter commented 9 years ago
That happens because I already add "http://" to the string at the Navigate 
method but if this littel "hack" solves the problem then it is ok!

Original comment by tsumalis96@gmail.com on 23 Feb 2012 at 5:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The URL you have given is not a valid URL address at first place. You should 
encode your non-ascii chars in your URL string.
If you are using VB.NET or C# then you can do it like this: (Add a reference to 
System.Web in your project first in order to use HttpUtility namespace)

Dim URL As String = 
"http://www.one.co.il/League/Current/1,1,0,0/ליגת_ווינר"
WebkitBrowser1.Navigate(System.Web.HttpUtility.UrlEncode(URL))

Original comment by ronit...@gmail.com on 16 Dec 2014 at 12:15