GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.1k stars 260 forks source link

Added full encoding read/write support #110

Closed karimbahgat closed 7 years ago

karimbahgat commented 7 years ago

In both Python 2 and 3, all records containing text values are now immediately decoded and returned as unicode based on the specified encoding. When writing, any unicode is encoded to the specified encoding. The encodingErrors option decides how to handle encoding errors.

As per the shapefile specs, field names are encoded to ascii only.