fopen or such with UTF-8 filepath

"Kenji Uno" <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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 


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.