txt(gbk_ansi) file preview have garbled
Steps to reproduce
- upload test txt file
- preview txt file
Expected behaviour
display right.
Actual behaviour
test file title is right, content have garbled. txt create by windows default encoding is cp936(gbk)_ansi. if I change file encoding to utf-8, it display right.
cp936(gbk)_ansi file:

utf-8 file:

test_file: test_file.zip
Server configuration
docker nextcloud:latest ubuntu 16.04 sqlite
open the file by gvim in windows10 or vim in ubuntu 16.04, the file encoding is "cp936(gbk)"
vimrc setting:
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

use file --mime-type --mime-encoding, result is text/plain; charset=iso-8859-1
How to solve this problem?Can you explain it in detail? thank you
How to solve this problem?Can you explain it in detail? thank you
Unresolved, just ignore it, not use gpk encoding files.