Home > CMS Tutorial > PHPCMS > body text

phpcms choose utf8 or gpk

hzc
Release: 2020-06-05 17:38:17
Original
2703 people have browsed it

phpcms choose utf8 or gpk

Selection of utf8 and gpk in phpcms:

utf-8: Chinese characters occupy 3 bytes, English characters occupy one byte
gbk: Chinese characters occupy 2 bytes, English characters occupy 2 bytes
utf-8: Good international compatibility, foreign browsers can access it without downloading language packs.
gbk: National level.

It is recommended to choose utf-8 encoding. utf-8 is an encoding format common to all countries, and gbk is an encoding format in our country and is not suitable for global use. You can choose according to the actual requirements and scope of use of your project.

Recommended tutorial: "phpcms tutorial"

The above is the detailed content of phpcms choose utf8 or gpk. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template