[AC-178] Ti.UI.iOS.createDocumentViewer encoding issue
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2015-11-22T11:49:53.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | ios |
| Reporter | Michael Bahl |
| Assignee | Mostafizur Rahman |
| Created | 2015-06-24T08:00:53.000+0000 |
| Updated | 2015-11-22T11:49:53.000+0000 |
Description
I wanna show a local file on iOS in a document viewer, the file containing white spaces.
*In 3.5.1GA (working as expected):*
Ti.UI.iOS.createDocumentViewer({
url : "my test file.png" //This one would try to open a file "my test file.png"
});
*In 4.0.0RC4 (this is not working):*
Ti.UI.iOS.createDocumentViewer({
url : "my test file.png" //This one would try to open a file "my%20test%20file.png"
});
When I use file.nativePath 4.0.0RC4 the string will be encoded twice:
Ti.UI.iOS.createDocumentViewer({
url : file.nativePath //This one would try to open a file "my%2025test%2025file.png"
});
This behavior makes it impossible to read local files with whitespaces in the Documentviewer.
No comments