Problem of accents in the name when saving a file in php

0

I have a problem when uploading files in php, the files upload well but they remain with the name: Presentation1.pptx when they should be Presentation1.pptx, because the name changes I can not call them later, I tried with utf8_encode ($ _FILES ["fileit"] ["name"]); but it does not work it keeps it the same, and check the charset="utf-8" in the headers and they are fine, in the database if you save the data with the accents but in the files no.

I appreciate your help.

    
asked by Andrews 19.06.2018 в 22:04
source

1 answer

1

you can try

utf8_decode($_FILES["fileit"]["name"]);
    
answered by 19.06.2018 в 23:16