note 101068 added to function.opendir

From: Date: Wed, 24 Nov 2010 09:56:52 +0000
Subject: note 101068 added to function.opendir
Groups: php.notes 
Request: Send a blank email to php-notes+get-174312@lists.php.net to get a copy of this message
How can I open an UTF8 directory, this is not working: $dir = 'M:\\test\\1999 影技\\'; $dh = opendir($dir); ---- $dh returns FALSE of course I tried various conversion functions like: $dir = mb_convert_encoding($dir, "iso-8859-1", "UTF-8"); or $dir = iconv( "utf-8", "iso-8859-1", $dir); anyway, nothing work :( thanks for your help, david ---- Server IP: 89.31.146.176 Probable Submitter: 88.177.155.130 ---- Manual Page -- http://www.php.net/manual/en/function.opendir.php Edit -- https://master.php.net/note/edit/101068 Del: integrated -- https://master.php.net/note/delete/101068/integrated Del: useless -- https://master.php.net/note/delete/101068/useless Del: bad code -- https://master.php.net/note/delete/101068/bad+code Del: spam -- https://master.php.net/note/delete/101068/spam Del: non-english -- https://master.php.net/note/delete/101068/non-english Del: in docs -- https://master.php.net/note/delete/101068/in+docs Del: other reasons-- https://master.php.net/note/delete/101068 Reject -- https://master.php.net/note/reject/101068 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174312) next »