Titanium JIRA Archive
Appcelerator Community (AC)

[AC-178] Ti.UI.iOS.createDocumentViewer encoding issue

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-11-22T11:49:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios
ReporterMichael Bahl
AssigneeMostafizur Rahman
Created2015-06-24T08:00:53.000+0000
Updated2015-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.

Comments

No comments

JSON Source