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);
Option 2:
mb_convert_encoding($str, "utf-8", "gb2312");
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!