I typed a lot of Chinese characters in Neovim into a LaTeX file (.tex), and when I opened the file the next day all the characters became unrecognizable (everything looked great before I shut down my machine the first day): 
The file still works well, when I compile the .tex file into pdf everything was fine. I do can open the file with gedit to get all the correct Chinese characters and than paste them back to Neovim but that would be tedious.
This seems to be an encoding problem, I hope to get some insightful ideas about how to fix this.
:verbose set encoding?, and you might want to checklocalein a terminal too. – D. Ben Knoble Oct 17 '20 at 14:23:verbose set encodinggivesencoding=utf-8 Last set from ~/.config/nvim/init.vim line 28, I set it explicitly in the config file before writing this file. Locale in terminal gives all the itemsen_US.UTF-8. I start to wonder whether this is a plugin problem (related to LaTeX) , as many other Chinese files stay fine up til now (mostly written in markdown). I use pluginsvimtex,coc-texlabandcoc-vimtex. – Ahacad Oct 17 '20 at 16:09fileencodings=utf-8(beware the s) and things look well now. A similar question is here. This configuration seems to set vim to read a file using a specific encoding scheme. – Ahacad Oct 18 '20 at 01:10