can anyone tell me what encoding is applied on the chinese character, so that chinese characters are converted into this code or text and stored in mysql database :
original chinese characters which are displayed in web page :
on the web page there is a header function is used to make standard chinese chars as follow:
header('Content-type: text/html; charset=utf-8');
When you decode
as UTF-8, and encode as CP-1252, then you get
When you decode the above as UTF-8 and encode as CP-1252 once again, then you get
That’s what here is happening.
It is Unicode character set (code points) encoded as UTF-8.