I want to echo a string 京icp备09001224号
(some characters are in Chinese Language) .
But when i do echo for such string, it prints 京icp备09001224å
·
How can i get the exact sting as output?
thanks.
I want to echo a string 京icp备09001224号
(some characters are in Chinese Language) .
But when i do echo for such string, it prints 京icp备09001224å
·
How can i get the exact sting as output?
thanks.
similar question asked here In php how to display chinese character?
And here is your solution, you need to specify the encoding, to display the characters.
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" ></meta>
<?php echo "京icp备09001224号"; ?>
will output like
京icp备09001224号
and test your php file encoding if this does not work. Encode your php file with utf-8.
京icp备09001224å
is your text printed out in Windows-Latin-1. One of the elements in your toolchain is not set to use UTF-8.