Home >Backend Development >PHP Tutorial >air jordan xx8 php Ajax garbled code

air jordan xx8 php Ajax garbled code

WBOY
WBOYOriginal
2016-07-29 08:37:511174browse

And AJAX supports UTF8
Okay, first add a header("content-type:text/html; charset=utf-8");
Tell the webpage that the encoding of this implementation is UTF-8
Then add the required Use $test = iconv('gbk', 'utf-8′, $test); to convert the output content to the encoding
and then output it
If you are interested, you can take a look
header(”content-type: text/html; charset=utf-8″);
$test=”I am Chinese”;
echo $test;
$test = iconv('gbk', 'utf-8′,$ test);
echo $ test;
?>

The above introduces the air jordan xx8 php Ajax garbled code, including the content of air jordan xx8. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn