Skip to content

Instantly share code, notes, and snippets.

@hannic
Created December 2, 2012 19:41
Show Gist options
  • Save hannic/4190609 to your computer and use it in GitHub Desktop.
Save hannic/4190609 to your computer and use it in GitHub Desktop.
rename iso to utf8
#!/bin/sh
# Rename ISO filenames to UTF
# This file is copyleft, enjoy!
for arg
do
newfile=`echo "$arg" | iconv -f ISO-8859-1`;mv "$arg" "$newfile";
done
# Convert from code set ISO88592 "input.txt" to UTF8 code set or ASCII and stores the result as "output.txt"
# iconv -f ISO88592 -t UTF8 < input.txt > output.txt
# iconv -f ISO88592 -t ASCII//TRANSLIT < input.txt > output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment