Skip to content

Instantly share code, notes, and snippets.

@guillaumebreton
Created September 26, 2011 21:12
Show Gist options
  • Save guillaumebreton/1243421 to your computer and use it in GitHub Desktop.
Save guillaumebreton/1243421 to your computer and use it in GitHub Desktop.
Converts files from Latin1 (ISO-8859-1) to UTF-8
#!/bin/bash
for file in *
do
if [ -f "$file" ]
then
iconv -f latin1 -t utf8 "$file" > "utf8_$file"
continue
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment