Skip to content

Instantly share code, notes, and snippets.

@bigga
Forked from t3chnoboy/gist:8322246
Created June 29, 2022 03:40
Show Gist options
  • Save bigga/5263c31c85428843f0f00260e5d2ab01 to your computer and use it in GitHub Desktop.
Save bigga/5263c31c85428843f0f00260e5d2ab01 to your computer and use it in GitHub Desktop.
Convert all files in folder to utf-8 using iconv
# http://stackoverflow.com/questions/4544669/batch-convert-latin-1-files-to-utf-8-using-iconv
find . -type f -exec bash -c 'iconv -f iso-8859-1 -t utf-8 "{}" > /path/to/destination/"{}"' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment