Ivan Enderlin @ Hoa 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. Any other idea?
Oh that it was so simple ;)
This is perhaps one of the reasons development of PHP6 ground to a halt?
'detecting and fixing' something which seems to change at random is somewhat
difficult. For a long time I only used only lowercase file names when I was
heavily into cross OS working. Fortunately most of the customer sites who would
not allow Linux servers back then are now installing them themselves :)
This makes life a little easy now ... but add more than European character sets
into the equation, and windows is still the sticking point simply because of
'code page conversion'. When PHP6 was being roadmapped, personally I was looking
to it as the solution to these problem, but without the OS getting it right in
the first place there is not a lot we can do except just take a lot of care with
how we use unicode characters :(
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php