Working with rename function in PHP
===

There is a file within the directory and I am trying to use rename( arg1, arg2 ) to rename the arg1 file.  

However, the arg1 file contains Asian letters and I get the message that the file is not available.

how can I solve this issue

thanks

        $elements = scandir($dir);
	
	
	foreach ($elements as $key => $value) 
	{

		rename("./$value", "$newname");

	}