incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-907) Wrong URL encoding when downloading/uploading files from/to URLs with Unicode characters in the path
Date Tue, 17 Jul 2012 21:06:37 GMT

    [ https://issues.apache.org/jira/browse/CB-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416600#comment-13416600
] 

Shazron Abdullah commented on CB-907:
-------------------------------------

Reverting this fix, as I realized Android does not do this. The best approach is to call encodeURI
on your URL and it should work with jQuery as well, it returns what you expect.

There is a doc issue CB-1083 that tells you what is required for the API function. 
                
> Wrong URL encoding when downloading/uploading files from/to URLs with Unicode characters
in the path
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CB-907
>                 URL: https://issues.apache.org/jira/browse/CB-907
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>         Environment: iOS 5 on iPad 2 and 3
>            Reporter: William Wong
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> Repro:
> - Download files thru either FileTransfer.download or jQuery.ajax, with Unicode characters
in the URL
> -- e.g. $.ajax('http://dummy.org/中文名.txt');
> Expect:
> - It will download http://dummy.org/%E4%B8%AD%E6%96%87%E5%90%8D.txt
> Actual:
> - It downloads http://dummy.org/%C3%A4%C2%B8%C2%AD%C3%A6%E2%80%93%E2%80%A1%C3%A5%C2%90%C2%8D.txt
> I tested it on Mobile Safari and the URL encoding done is correct.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message