fopen or such with UTF-8 filepath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux