Convert the charset of file names from iso-8859-15 to utf8

Last Updated on April 8, 2011 by Till Brehm

When you copy files from a older Linux or Windows system to a new Linux system, the filenames can get broken and have to be converted. Handy tool to translate the charset of filenames is convmv.


convmv -f iso-8859-15 -t utf8 -r /var/www/myhome.lan/web/images/*

Your Perl version has fleas #37757 #49830
Starting a dry run without changes...
mv "/var/www/var/www/myhome.lan/web/images/gr▒n.jpg"     "var/www/myhome.lan/web/images/web/images/grün.jpg"

To finally execute the command (not dry run), use the --notest option:

convmv --notest -f iso-8859-15 -t utf8 -r /var/www/myhome.lan/web/images/*

Thanks to PlanetFox for this FAQ.

Leave a Comment