[!--quoteo(post=384907:date=Jun 17 2006, 03:24 AM:name=kiss-o-matic)--][div class=\'quotetop\']QUOTE(kiss-o-matic @ Jun 17 2006, 03:24 AM) [snapback]384907[/snapback][/div][div class=\'quotemain\'][!--quotec--] A code snippit would help. You also need to make sure that 1) Your web server (apahce?) supports the character set 2) Your browser is set to the right character set. How are you trying to display the file name? Just as a normal string? [/quote] Hi kiss-o-matic, below is my php code [i] <?php if ($handle = opendir('C:\webroot\ckk\ckk\code')) { while (false !== ($file = readdir($handle))) { echo "$str<br>"; } closedir($handle); } ?>[/i] This php script can display the english file name correctlly but for japanese named file, it will display ????.txt I have read some article and was told that i need to configure the mb_string function in php.ini. I did so but still failed. My web server is apache and for the browser, i set the character set to utf-8. Do u have any sample that can dispaly the japanese character? and how to do if i want to compare the japanese character?