Home  >  Article  >  CMS Tutorial  >  phpcms choose utf8 or gpk

phpcms choose utf8 or gpk

hzc
hzcOriginal
2020-06-05 17:38:172610browse

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!

Statement:
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