I want to move files on a windows machine with special characters in it. The characters already exist in the file and folder names, but my php script will not copy them to another directory. I am NOT trying to display this online, and all the help I can find is about setting the right headers for browsers, which isn't relevant here.
Files without special characters copy and move just fine. Some sample code:
$file = '★'
$new_file_path = 'path_to_dir' . $file.
if (!rename($file, $new_file_path))
echo "file did not copy correctly";