cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmed Ibrahim Khalil (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-3517) CDVInAppBrowser not working when there are Arabic characters in the URL
Date Mon, 27 May 2013 11:01:20 GMT
Ahmed Ibrahim Khalil created CB-3517:
----------------------------------------

             Summary: CDVInAppBrowser not working when there are Arabic characters in the
URL
                 Key: CB-3517
                 URL: https://issues.apache.org/jira/browse/CB-3517
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.6.0
            Reporter: Ahmed Ibrahim Khalil
            Assignee: Shazron Abdullah


When there is arabic characters in the URL for example like this URL 

http://example.com/Memos/34160417-1434هت%20بشان%20آلية%20تنظيم%20تكليف%20مديري%20المدارس%20الاهلية%20لعام%201434هـ%20--1435هـ.pdf

An Exception occurs inside the 

- (void)browserLoadStart:(NSURL*)url

as the url is nil 

I solved this issue by percentage escaping the URL

NSURL* absoluteUrl = [[NSURL URLWithString:[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
relativeToURL:baseUrl] absoluteURL]; (line 83 of the CDVInAppBrowser.m)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message