PHP detecting filesystem encoding

Posted by Evert on Stack Overflow See other posts from Stack Overflow or by Evert
Published on 2010-03-26T11:07:36Z Indexed on 2010/03/26 11:13 UTC
Read the original article Hit count: 218

Filed under:
|
|

Hi guys,

I need to save files with non-latin filenames on a filesytem, using PHP.

I want to make this work cross-platform. How do I know what encoding I can use to write the file? I understand many modern filesystems are UTF-8 based (is this correct?), but I doubt Windows XP is (for instance).

So, is there a robust detection mechanism?

Evert

© Stack Overflow or respective owner

Related posts about unicode

Related posts about filesystems