Last active
August 29, 2015 14:03
-
-
Save odlp/6d6c951745e3c1e0226a to your computer and use it in GitHub Desktop.
Convert CSV file encoding to UTF-8 (incov)
This file contains hidden or 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
# 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