what encoding this is?

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'); 

Thanks…

2 Answers

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.

Leave a Reply

Your email address will not be published. Required fields are marked *