Today we have a difficult Python coding problem, primarily the coding problem in the Linux operating system.
Anyway, I can't use the Chinese input method in the Linux vim to play Chinese?
Vim in the set Encoding,set fileencoding, set fileencodings a variety of settings or can not play Chinese, or appear garbled?
At this point consider the Linux system coding problems, using the locale command to view the Linux system coding. The Lc_all setting overrides the settings of the even lc_*, ignoring Lang directly. If Lc_all is not set, lc_* is set according to the value of Lang.
Note that the Linux system will only support Chinese if the Lc_all is set in Chinese ~ If this place is ignored. How to set in Vim is invalid.
The meaning of three commands in vim
ENC (encoding): Vim's internal code
Fenc (fileencoding): Vim resolves the current file encoding
Fencs (fileencodings): A list of encoded format sequences that the Vim guesses when parsing files
These don't really need testing, and it's important to see the encoding.
Crawl page Attention Check encoding
Capture the attention of the Web page code check, Baidu image coding using UTF8, and Sogou image coding using gb2312. Where the URL parameters are also fastidious,
Baidu's URL parameters in Chinese using UTF8 code. Sogou pictures of the URL parameters need to transfer code. These details need to be taken into account in crawling Web pages.
http://pic.sogou.com/pics?query=%B6%AB%DD%B8%BB%C6%BD%AD%CC%AB%D7%D3%BE%C6%B5%EA%C3%C0%C5% AE
http://image.baidu.com/i?ie=utf-8&word= Dongguan Huangjiang Prince Hotel
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/