Re: GtkFileChooser::get_filenames / get_uris override
| From: | Andrei Zmievski | Date: | Fri, 10 Mar 2006 06:59:26 +0000 |
| Subject: | Re: GtkFileChooser::get_filenames / get_uris override | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2565@lists.php.net to get a copy of this message | ||
Yes, if the encoding of the filename string is different from the encoding of the filename in the filesystem, it will fail. Tough luck. And PHP won't know anything about it, at least until PHP 6.
-Andrei
On Mar 9, 2006, at 10:50 PM, Christian Weiske wrote:
Andrei,And that's the problem really. What if you want to both use the filename in the widget _and_ pass it to fopen()? If you convert it to the php_gtk.codepage encoding you may have trouble using fopen(). IfSo if I hard-code a filename in my own encoding and use fopen with it, it may fail? I think it doesn't matter - it's even better - if the encoding is in the same as the php file. PHP itself should take care about the fopen filename conversion. --Regards/MfG, Christian Weiske