Created
November 21, 2012 21:25
-
-
Save lucasdavila/4127860 to your computer and use it in GitHub Desktop.
Simple postgresql script conversion from utf8 to latin1
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
# first convert the utf-8 script to latin1 | |
iconv -f utf-8 -t latin1 file.sql > __latin1-file.sql | |
# after execute the latin1 file | |
psql -d db-name -a -f __latin1-file.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment