What are the potential issues with encoding when uploading files with Umlaut characters in PHP on a Linux server from a Windows system?

When uploading files with Umlaut characters from a Windows system to a Linux server, there may be encoding issues due to the different default character sets used by the two systems. To solve this issue, you can convert the file name encoding to UTF-8 before saving it on the server.

// Convert Umlaut characters to UTF-8 encoding before saving the file
$filename = iconv('CP1252', 'UTF-8', $_FILES['file']['name']);
move_uploaded_file($_FILES['file']['tmp_name'], '/path/to/save/' . $filename);