) Webpage code. A very small problem affects your business.

Source: Internet
Author: User

Few people will notice their webpage code.

If your webpage contains Chinese content and the code is gb2312, there is no problem with Chinese browsing. We use a Chinese operating system, and IE is also a Chinese IE.

However, if your website has multiple languages, the Chinese homepage prompts visitors that the English version, Japanese version, and French version are available... This situation can be seen everywhere. Is the homepage code under your domain name still gb2312?

 

If yes, your homepage code has a big problem!

Your network promotion is your domain name. When a foreigner accesses your website, he or she will be prompted to install the gb2312 character on his or her computer! Will foreigners do this? Obviously not. A bunch of garbled characters are displayed on your homepage.

Therefore, if your website has Chinese content and other language versions, your home page (default page under the domain name) must be made an international UTF-8. In this way, a foreigner can see text that is not garbled. Although he/she does not understand it, it does not require the installation of Chinese character libraries.

Your web page indicates the UTF-8 or ISO code, the problem is solved? The problem is not that simple. Normally, visitors can browse normally. Because the default method of IE is automatic identification encoding. However, some browser users will set IEAS gb2312 in Chinese. If your webpage code is a UTF-8, but the file is not a real UTF-8, there will be a blank space when browsing. Right-click the IE code into a UTF-8, the page content instantly appears.

Have you ever seen a Web page blank? This rarely happens. We have seen such a real thing happen on the homepage of a BBS portal site.

This is a rare but strange phenomenon.

This usually happens when your original web page is gb2312, you use the Web Editor to set the web page encoding to a UTF-8, And Then paste the HTML source code. Web code turned into a UTF-8, but the file itself has not become a real UTF-8.

Whether you can believe it or not, you can use another Web Editor (such as altraedit) to open the web page to view the binary situation, you will find that the real file header encoding is not necessarily the same as the true pure UTF-8 file, there are subtle differences.

A very small problem hides a big problem. We will write it out and share it with you.

Related Article

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.