UIDocumentationInteractionController Incorrectly Displays Plain Text Files
| Originator: | ASalvitti.Gucwa | ||
| Number: | rdar://16773017 | Date Originated: | 4/30/2014 |
| Status: | Open | Resolved: | NA |
| Product: | iOS SDK | Product Version: | 7.1.1 |
| Classification: | UI | Reproducible: | YES |
Summary: When using the UIDocumenationInteractionController to display a .txt file in app that has been written to disk, non-english text in file is garbled. (Tested in Cyrillic and Japanese). If however, you first use Mail.app to open a text file (any text file) then move to third party application and open the same UIDocumentationInteractionController, the same text, same file now displays properly. Sample Project: https://github.com/AdamEsgie/DocInteractionBug Steps to Reproduce: Assuming the app I'm working on is titled "myApp" 1. Delete myApp from iPad 2. Turn Off iPad 3. Turn iPad On 4. Use Xcode to build and launch myApp on device 5. Display .txt file with cyrillic characters with UIDocumenationInteractionController (text should appear garbled) 6. Open Mail.app 7. Open any .txt file that contains international characters - (the two I tested were Japanese and Cyrillic) 8. .txt file displays properly in Mail.app 9. Move back to myApp and open the same file with the UIDocumenationInteractionController - .txt file text now displays properly Expected Results: UIDocumenationInteractionController should always display .txt files encoded using utf8 properly even if they are in cyrillic, japanese, ect. Actual Results: UIDocumenationInteractionController displays garbled text for .txt files with international characters
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!