What to do if the Chinese file name in php is garbled

藏色散人
Release: 2023-03-04 11:54:01
Original
2061 people have browsed it

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 .

What to do if the Chinese file name in php is garbled

Recommended: "PHP Video Tutorial"

PHP generates garbled Chinese file names

Use iconv to convert

$ifilename = iconv('UTF-8', 'GB18030', $filename);
Copy after login

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!

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