Re: UTF-8 files and include

From: Date: Wed, 22 Aug 2012 07:04:40 +0000
Subject: Re: UTF-8 files and include
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-62388@lists.php.net to get a copy of this message
On 22/08/12 08:57, Pierre Joye wrote:
hi! On Tue, Aug 21, 2012 at 3:10 PM, Ivan Enderlin @ Hoa <ivan.enderlin@hoa-project.net> wrote:
Hello, Some of my users & contributors have met an issue with files containing UTF-8 on certain Windows configurations (but they actually did not found the difference). Any idea why? The issue does not appear on Linux, BSD or Mac OS system, only for certain Windows. What do we need to check? --enable-zend-multibyte, some php.ini magic parameters, some ENV variables?
It can't be fixed easily. Basically avoid by any price to use Unicode names for the filenames of your projects. I see.
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?
Cheers. -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/

« previous php.internals (#62388) next »