SoFunction
Updated on 2025-03-04

Solve the problem of inconsistent length of PHP strings

As shown below:

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

These two sentences can be solved.

The above article solves the problem of inconsistent length of PHP strings. This is all the content I share with you. I hope you can give you a reference and I hope you can support me more.