Coding problems in Linux operating systems

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.