Someone often asks which code is better for UTF-8 and GBK on the webpage.
Based on individual needs
GBK encoding is specifically used to solve Chinese encoding, Which is dual-byte. Both Chinese and English are dubyte.
UTF-8 is an international multi-byte encoding. For English, 8-bit one byte, Chinese uses 24-bit three bytes.
In addition, if a foreigner accesses your GBK webpage, You need to download Chinese Language Pack support. This problem does not appear when you access a Web page with UTF-8 code.
Question. Direct access.
Obviously, if you are mainly engaged in ChineseProgramDevelopment. If the customer is mainly Chinese, then use GBK, because the Chinese use of UTF-8 Encoding
Three bytes. GBK is used to save space.
If you are developing an English website, use UTF-8 because UTF-8 occupies only one byte in Chinese and English. GBK is two bytes in both Chinese and English, and the country
When you access GBK, You need to download the Language Pack.
If your website is Chinese, but there are many foreign users, it is best to use UTF-8.