Skip to content

Instantly share code, notes, and snippets.

@odlp
Last active August 29, 2015 14:03
Show Gist options
  • Save odlp/6d6c951745e3c1e0226a to your computer and use it in GitHub Desktop.
Save odlp/6d6c951745e3c1e0226a to your computer and use it in GitHub Desktop.
Convert CSV file encoding to UTF-8 (incov)
# Convert file encoding for CSV in OS X:
iconv -f iso-8859-1 -t UTF-8 original.csv > utf-output.csv
# Where
# -f is current encoding
# -t is target encoding
# Guestimate of original file encoding with:
file -I
# Line count:
wc -l <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment