Permalink
Browse files
python hates unicode and kittens
- Loading branch information...
Showing
with
3 additions
and
0 deletions.
-
+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