On Wed, Aug 22, 2012 at 9:04 AM, Ivan Enderlin @ Hoa <ivan.ender...@hoa-project.net> wrote:
>> As it may (very often) works smoothly on most unices, it won't work >> ever using current releases or master on Windows. One has to set the >> correct codepage and do the conversion from/to UTF-8. > > Exactly. I can detect if PHP is running on Windows and making the conversion > on-the-fly but what kind of conversion? I have tried with utf8_decode() but > it seems to also fail. It is not possible yet to automatically detect the codepage on Windows. Also it may be changed during the request time (unlikely but possible). But if you know it, say using an configuration parameter, then convert from/to UTF-8 to/from this codepage using mbstring and pass the result to the file functions, require&co. But that's really tricky and buggy. > Any other idea? Yes, don't use UTF-8 in your filenames, that's not portable and bring all kind of issues (not necessary only on windows). I told you that already back then on twitter too when you asked me about this issue. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php