search

Home  >  Q&A  >  body text

文件上传的时候,我选了中文名的图片,上传成功后为什么是乱码了?

phpcn_u274phpcn_u2742892 days ago953

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:45:08

    When uploading a file, I selected an image with a Chinese name. Why was it garbled after the upload was successful? - PHP Chinese website Q&A - When uploading the file, I selected an image with a Chinese name. Why was it garbled after the upload was successful? - PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-26 11:15:08

    可能是你的编码不正确,你可以检查一下header("content-type:text/html;charset=utf-8),看看页面里有没有这样一段代码

    reply
    0
  • Cancelreply