[
https://issues.apache.org/jira/browse/CB-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416387#comment-13416387
]
Shazron Abdullah commented on CB-907:
-------------------------------------
Well, you can't have it both ways - we can either let you do the encoding or we
do. We can't detect if you have a pre-encoded URL. So the recommended way is to
not pre-encode the url (with this fix).
I'll see what is going one with the space in the url.
> 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