Permalink
Browse files

Fix for reading latin-1 encoding of geo headers.

  • Loading branch information...
1 parent fe3b6d0 commit f1dbaa963897d28b5809ec4b5c4f9da70e17ce7f cgroskopf committed Jun 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 dataprocessing/fetch_sf_data_2000.sh
  2. +1 −1 dataprocessing/fetch_sf_data_2010.sh
@@ -39,7 +39,7 @@ do
cat ${STATE_NAME_ABBR}${FILE_NUMBER}.uf1 >> sf_data_2000_${STATE_NAME_LOWER}_$i.csv
done
-in2csv -f fixed -s ${DATAPROCESSING_DIR}/census2000_geo_schema.csv ${STATE_NAME_ABBR}geo.uf1 > ${STATE_NAME_ABBR}geo2000.csv
+in2csv -e "latin-1" -f fixed -s ${DATAPROCESSING_DIR}/census2000_geo_schema.csv ${STATE_NAME_ABBR}geo.uf1 > ${STATE_NAME_ABBR}geo2000.csv
# Crosswalk
@@ -32,5 +32,5 @@ do
cat ${STATE_NAME_ABBR}${FILE_NUMBER}2010.sf1 >> sf_data_2010_${STATE_NAME_LOWER}_$i.csv
done
-in2csv -f fixed -s ${DATAPROCESSING_DIR}/census2010_geo_schema.csv ${STATE_NAME_ABBR}geo2010.sf1 > ${STATE_NAME_ABBR}geo2010.csv
+in2csv -e "latin-1" -f fixed -s ${DATAPROCESSING_DIR}/census2010_geo_schema.csv ${STATE_NAME_ABBR}geo2010.sf1 > ${STATE_NAME_ABBR}geo2010.csv

0 comments on commit f1dbaa9

Please sign in to comment.