PHP does not support low-level support for any encoding. But all this really means that he does not care about the language level. Strings in PHP are raw byte sequences that can be in any encoding you like. When processing multi-byte strings, you need to take care to use the correct string manipulation function, rather than directly screwing the byte stream. Thus, the only βnon-supportβ of Unicode is that it does not include the concept of encoding in the main language, but you can still work perfectly with any encoding by manipulating strings using the corresponding string function.
In fact, if you just took care of everything in UTF-8 all the time, you rarely have to worry about anything about encodings. PHP works great with Unicode.
For a detailed coverage of this topic, please see. What every programmer absolutely, should know positively about encodings and character sets for working with text .
deceze
source share