For example, the implementation method, find a lot of places, how to encode the wrong, the code itself is UTF8 encoded. How to implement string UTF8 encoding???
Reply content:
For example, the implementation method, find a lot of places, how to encode the wrong, the code itself is UTF8 encoded. How to implement string UTF8 encoding???
The Htmlentities function converts a character to an HTML entity
Html_entity_decode converting HTML entities back to characters
echo html_entity_decode('哈');Ha
Chinaz inside the UTF-8 conversion is wrong and is actually Unicode
Can this, you enter in the Baidu input box to convert the Chinese characters, and then search, copy the current address box URL, pasted in the text document, WD behind is the UTF-8 encoding of Chinese characters. Each byte is separated by%, and the general Chinese character is encoded in 3 bytes.