Solve the problem of inconsistent length of PHP string

  • 2021-08-31 07:24:21
  • OfStack

As shown below:


$paramStr = iconv("UTF-8", "GB2312//Ignore", $paramStr); 
$paramStr = iconv("GB2312", "UTF-8//Ignore", $paramStr); 

These two sentences can be solved.


Related articles: