fopen or such with UTF-8 filepath

From: Date: Fri, 08 Mar 2013 09:18:49 +0000
Subject: fopen or such with UTF-8 filepath
Groups: php.windows 
Request: Send a blank email to php-windows+get-30987@lists.php.net to get a copy of this message
Hi. Anyone trying to realize UTF-8 filepath support on Windows's php5? I'm developing php-wfio: Unicode(UTF-8 only) filename support for PHP 5.4 on Windows. About file access: --- $file = wfio_fopen8("多国語.txt", "rb"); // in UTF-8 .... fclose($file); --- It uses _wfopen instead of fopen internally. php-wfio exposes following procedures: wfio_fopen8 wfio_getcwd8 wfio_path2utf8 wfio_path_from_utf8 wfio_path_combine PHP stream wrapper is supported: --- $file = fopen("wfio://多国語.txt", "rb"); // in UTF-8 .... fclose($file); --- dirstream is also supported: --- $d = opendir("wfio://C:\\Windows"); .... closedir($d); --- "wfio://" supports: fopen, fwrite, fread, stat, fclose, opendir, readdir, closedir, rename, copy, unlink, mkdir, rmdir. * "chdir" is not supported! * Keep your fullpath always. * Use wfio_getcwd8 for getting current directory * Use wfio_path_combine to hold your subdir in fullpath format. Any comments? Thanks kenji uno

« previous php.windows (#30987) next »