Linux under the opening of some text files will encounter garbled, excerpt a method:
1)txt text character garbled
In terminal input gconf-editor, something like The Windows Registry is started
Go to catalogue apps->gedit-2->preferencea->encodings
Select the right auto_detected2 Point and select Edit Key
Then add gb18030 and move up to second place
2) withgeditAfter you finish editing the file, useVIOpen, a lot of Chinese characters in the comments are garbled due to thegeditbelow, the input method I use isFCITX,FCITXdefault isGBcoded, and myVimdefault isUtf-8(I checked it out, as ifgeditdefault is alsoUtf-8), so opening will be garbled. Modified the configuration file so thatVISupportGBthe code is good.
Modified . VIMRC:
Let &termencoding=&encoding
Set FILEENCODINGS=UTF-8,GBK (try to find only the Fileencodings parameter can be set)
Some tips for using vim