Permalink
Browse files

python hates unicode and kittens

  • Loading branch information...
1 parent 5b85add commit 050a960a97cc373a1dac504f1548815803053de4 Calvin Metcalf committed Oct 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 Install/esri2open/parseRow.py
@@ -55,6 +55,9 @@ def parseCSV(self,row):
fc["geometry"]=self.parseGeo(row.getValue(self.shp))
except:
return
+ for key in fc:
+ if isinstance(fc[key],unicode):
+ fc[key] = fc[key].encode('utf_8')
self.outFile[0].writerow(fc)
def parseGeoJSON(self,row):

0 comments on commit 050a960

Please sign in to comment.