Self-Evident / OneFileCMS

A single file cms - all in one file!
http://onefilecms.com/
166 stars 58 forks source link

File names with non-ascii characters #30

Closed Self-Evident closed 10 years ago

Self-Evident commented 10 years ago

Show up as �����. A fix is in the works. It's probably always been an issue, but I just noticed it...

Self-Evident commented 10 years ago

Done. The issue may only have affected servers with a file system that didn't use UTF-8 for file name encoding, such as NTFS. Had to switch all string functions over to their mb_ counterparts, and also make sure that any file-system access (is_file, file_get_contents, etc...) used a $filename that was in the file-ssytem's encoding.