Created
December 2, 2012 19:41
-
-
Save hannic/4190609 to your computer and use it in GitHub Desktop.
rename iso to utf8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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