Saturday 10 August 2013

Create a file with another languajes characters in php

Create a file with another languajes characters in php

i'm trying to create a file with name
"Дискография"
but in the folder appears with the name Ð"иÑкографиÑ.
The php file is in UTF-8.
i have this:
<?php
$nombre =
"&#1044;&#1080;&#1089;&#1082;&#1086;&#1075;&#1088;&#1072;&#1092;&#1080;&#1103;";
$fp = fopen("C:/$nombre", 'w+');
fclose($fp);
?>

No comments:

Post a Comment