Cannot make the script to show created files with cyrillic names. PHP
<p>When I create a file with cyrillic name, it isn't showing its name in the table. It shows that file exists but its name is just &nbsp; . I've got no idea how to make it show the cyrillic file names, if it is possible.</p>

<p>Here is the script:</p>

<pre><code>&lt;?php
echo $_POST['edit'];
$full_path = ".";

$dir = @opendir($full_path) or die("Директорията не може да се отвори.");

while($file = readdir($dir))
{
  if($file == "news-success.php" || $file == "components" || $file == "index-restricted.php" || $file == "index-error.php" || $file == "generalsettings-success.php" || $file == "exampic" || $file == "all_count.txt" || $file == "assets" || $file == "count_vhod.txt" || $file == "count_nachalo.txt" || $file == "index-invalid.php" || $file == "news-delok.php" || $file == "images" || $file == "auth.php" || $file == "php" || $file == "news.php" || $file == "sponsors.php" || $file == "upload" || $file == "js" || $file == "img" || $file == "dashboard.php" || $file == "logout.php" || $file == "ajax" || $file == "prettify" || $file == "log.php" || $file == "css" || $file == "generalsettings.php" || $file == "nachaloadm.php" || $file == "php_errorlog" || $file == "fonts" || $file == "sql.php" || $file == "edit_file.php" || $file == "delete.php" || $file == "create_file.php" || $file == ".." || $file == "index.php" || $file == "." || $file == "edit.php")

  continue;
?&gt; &lt;?php
  echo "&lt;tr&gt;&lt;td&gt;&lt;a href='$file'&gt;". pathinfo($file, PATHINFO_FILENAME) ."&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href='edit.php?name=$file' class='btn mini purple'&gt;&lt;div align='center'&gt;&lt;i class='icon-edit'&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Редактирай&lt;/div&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;div align='center'&gt;&lt;a href='delete.php?name=$file' class='btn mini black'&gt;&lt;div align='center'&gt;&lt;i class='icon-trash'&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;Изтрий&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;";
}

closedir($dir);


?&gt;
</code></pre>

<p>Regards,
Denis Saidov</p>
