Home > Article > Backend Development > What to do if the Chinese file name in php is garbled
Solution to garbled Chinese file names in php: First open the corresponding PHP file; then use the "$ifilename = iconv('UTF-8', 'GB18030', $filename);" method to convert the encoding .
Recommended: "PHP Video Tutorial"
PHP generates garbled Chinese file names
Use iconv to convert
$ifilename = iconv('UTF-8', 'GB18030', $filename);
The above is the detailed content of What to do if the Chinese file name in php is garbled. For more information, please follow other related articles on the PHP Chinese website!