Menu

Showing posts with label Other. Show all posts
Showing posts with label Other. Show all posts

Friday, March 29, 2013

Fixing filename encoding using a PHP console script

Recently i had received an archive with files required for a project. It was awful. The filenames were in ciryllic and on top of that the encoding was broken. So what to do when something like this happens? I wrote a little php script that walks all directories and files and renames the files with the appropriate encoding: