uiwebkit error 101

前端 未结 2 1535
闹比i
闹比i 2021-02-14 03:43

I have a search box which takes keywords in Hebrew and English and searches in wikipedia for the corresponding keywords.

If I type in English it works well but when I ty

相关标签:
2条回答
  • 2021-02-14 04:00

    In my case, I had a space at the end of my url. i.e.

    https%3A%2F%2Fwww.facebook.com%20 (Note %20 at the end). I removed it and it worked flawlessly.

    Hope it helps somebody.

    0 讨论(0)
  • 2021-02-14 04:14

    We can resolve this problem by using string encoding

    NSString *encodedString=[siteUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *weburl = [NSURL URLWithString:encodedString];
    

    site url is

    http://he.wikipedia.org/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93%3A%D7%97%D7%99%D7%A4%D7%95%D7%A9&search=\u05db\u05db\u05db\u05db

    0 讨论(0)
提交回复
热议问题