What kind of code is better to do the website choice

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The webmaster who sits the website will always encode the question, the webpage code is chooses GB2312 or UTF-8 good?

Generally speaking, in terms of speed, Chinese web pages use GB2312 language, English Web pages use UTF-8 language (or GB2312, but the general English page without GB2312) will have the ideal speed.

This is because in the Web page file, the GB2312 language (ANSI file encoding) a full-width character occupies 2 bytes, UTF-8 language (UTF-8 file encoding) one full-width character occupies 3 bytes. Half-width characters are a byte in both ANSI and UTF-8 encoding. The reason why English Web pages do not need GB2312 language is that some foreign users ' browsers may need to install language packs.

As discussed earlier, if Chinese web pages use UTF-8 language, will occupy some server CPU, memory, hard disk resources, speed will be slightly slower. If the site is a large number of visits, you need to consider this factor, the Chinese web page using GB2312 language can improve the performance of 10%~30%, access speed will be a bit faster.

If the number of visits to the site is small, below 500IP per day, Chinese web pages using GB2312 or UTF-8 are available. Therefore, the best solution is: Chinese Web page using GB2312 language, English Web page using UTF-8 language.

Article source: Webmaster often to the network (http://www.admin321.com) to reprint please indicate the link, thank you for your cooperation!

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.