Home > Article > Backend Development > Does php not support unicode?
php does not support unicode, because Unicode is a reliable way to represent all letters and symbols, and PHP can only support eight-bit binary encoded character sets.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
Doesn’t php support unicode?
Unicode is a reliable way to represent all letters and symbols.
PHP official documentation says: "A string string is composed of a series of characters, each character is equivalent to one byte. This means that PHP can only support 256 character sets,"
means that PHP can only support eight-bit binary encoded character sets. And Unicode is all of them.
charset=utf-8 This part indicates that UTF-8 character encoding is used, which is the abbreviation of 8-bit Unicode Transformation Format.
From this point of view, does it explain why PHP cannot support Unicode encoding? It may be possible, but it is just some strange characters.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of Does php not support unicode?. For more information, please follow other related articles on the PHP Chinese website!