search

Home  >  Q&A  >  body text

When pictures are uploaded to a folder, the file names are garbled.

<?phpif (count($_FILES)) { $retFiles = uploadFile("file"); if ($retFiles['status'] == 1) { echo $retFiles['message']; } else if ($retFiles['status'] == 0) { echo "Upload: " . $retFiles["name"] . "<br />"; echo "Type: " . $retFiles["type"] . "<br />"; echo "Size: " . ($retFiles["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $retFiles["temp"] . "<br />"; %3

主持人~冬旭主持人~冬旭1869 days ago1265

reply all(1)I'll reply

  • A峰

    A峰2019-12-02 18:07:32

    Set the character encoding and take a look: header("Content-type:text/html;charset=utf-8");

    reply
    0
  • Cancelreply