ios-legacy
ios-legacy copied to clipboard
NON UTF-8 files can not be displayed correctly
I am a Chinese user and use Windows OS. I created a .txt file, typed some Chinese in the file, and saved it with encoding ANSI by default. Then upload the .txt file to my ownCloud.
And opened the iOS app, downloaded the .txt file. Oh no, I can not read the Chinese I typed.
If I save the .txt file with encoding UTF-8, everything's OK.
So it's necessary to detect the encoding before open a text/plain file and change encoding to show the file.
Hi @l12ab
Thanks for your suggestion.
For the moment the app only support UTF-8 encoding to read txt file. :(
I have plan to improve that but we don't know when.
I don't know if you are developer, this fix is a good point to start to collaborate with us! ;)
@ggdiez I'm learning swift but dont know Obj-c
We try include the new features in Swift like the Share in extension, but not always is possible.
@ggdiez Also read mode does not always work for me. I'm syncing UTF-8 encoded .txt files with ownCloud and the German "Umlaute" ä, ö, ü are not displayed correctly in the preview. In the "edit" mode, everything is correct. Creating a new file from the ownCloud app also creates a UTF-8 encoded file that is synced correctly, but instantly displayed with wrong characters in the preview.
Editor | Preview | |
---|---|---|
![]() |
![]() |
![]() |