Wrong file name when upload file

Hello

I upload one file in windows 10pt-pt
filename is: Simulação_3793648.pdf

after upload on windows dir show Simulação_3793648.pdf

if(move_uploaded_file(iconv('utf-8','cp1252',$_FILES['ficheiro']['tmp_name']), $target_path)) {
				$file=basename( $_FILES['ficheiro']['name']);
echo "$file"; 
}

I try convert using iconv but not work.

Is strange

Only happens one my office computer.

I try on my home computer and it works perfect.

I just install newer version of xampp and is working.

Just not understand this bugs or crazy things

Sponsor our Newsletter | Privacy Policy | Terms of Service