Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply content: In general, you only need to correctly set the vim encoding and recognition sequence, and rarely encounter garbled characters:
Set fileencodings = ucs-bom, UTF-8, UTF-16, gbk, big5, gb18030, latin1
After seeing this, I opened my local vimrc and posted it to you. it has been used for two years and has not encountered any garbled code.
Set fileencodings = UTF-8, gb2312, gb18030, gbk, ucs-bom, cp936, latin1 can be considered for encoding: e ++ enc = UTF-8 myfile.txt try the vim Chinese garbled solution in Debian:
1. set ~ Add fileencodings, enc, and fencs to the. vimrc file. the code is as follows:
Set fileencodings = UTF-8, gb2312, gb18030, gbk, ucs-bom, cp936, latin1set enc = utf8set fencs = utf8, gbk, gb2312, gb18030
Try to switch the font. it is usually because vim uses the Spanish font. replace the font with the simplified font.