Re: reading files with accents in the filename from PHP [message #183111 is a reply to message #183110] |
Wed, 09 October 2013 15:51 |
Peter H. Coffin
Messages: 245 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Wed, 09 Oct 2013 17:06:21 +0200, Erwin Moller wrote:
> I don't have a good feeling about my "fix".
> It worked, but I don't know exactly what is going on.
>
> I actually hoped PHP would handle such things 'the right way', whatever
> that might be. ;-)
> Now I wonder what happens if my code happens to run on some *nix OS.
> Ideally my PHP code is OS agnostic.
PHP is; it's the OS you're running on that's playing up with how it's
encoding the file names. That's beyond PHP's control and PHP is bending
to the will of whatever encoding your source file is in, mostly by
ignoring it.
--
"'I'm not sleeping with a jr. high schooler! I have a life-sized doll
that looks like one.' Uh huh. That sounds SO much less pathetic."
-- Piro's Conscience www.megatokyo.com
|
|
|