Home > CMS Tutorial > PHPCMS > What to do if phpcms gets garbled characters?

What to do if phpcms gets garbled characters?

藏色散人
Release: 2020-01-15 09:10:21
Original
2390 people have browsed it

What to do if phpcms gets garbled characters?

What should I do if phpcms gets garbled characters?

The reasons and solutions for PHP receiving garbled Chinese parameters in GET

Option 1:

$str = iconv("gb2312","utf-8",$str);
Copy after login

Option 2:

mb_convert_encoding($str, "utf-8", "gb2312");
Copy after login

PHP Chinese website, A large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What to do if phpcms gets garbled characters?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template