lets say i have a file "name.txt"
which contains Japanese characters
i want to take the text inside this text file and use it as a name to another file
script:
<?PHP
$fn = file_get_contents('name.txt');
$fo = fopen($fn,'w');
fwrite($fo,$data);
fclose($fo);
?>
however the name of the file that is being created is all rubbish text.
how can i solve this?
im using windows with PHP5 from commandline