ios-legacy icon indicating copy to clipboard operation
ios-legacy copied to clipboard

NON UTF-8 files can not be displayed correctly

Open l12ab opened this issue 9 years ago • 5 comments

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.

l12ab avatar Aug 11 '15 11:08 l12ab

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 avatar Aug 14 '15 08:08 ggdiez

@ggdiez I'm learning swift but dont know Obj-c

l12ab avatar Aug 14 '15 13:08 l12ab

We try include the new features in Swift like the Share in extension, but not always is possible.

ggdiez avatar Aug 17 '15 06:08 ggdiez

@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.

cdeschryver avatar Aug 10 '18 10:08 cdeschryver

Editor Preview
encoding 2018-08-10_18_02_00_1 2018-08-10_18_02_00

michaelstingl avatar Aug 10 '18 16:08 michaelstingl