def test_write_gb18030(self):
    'Can write a simplified Chinese shapefile'
    schema = {'geometry': 'Point', 'properties': {'label': 'str', 'num': 'int'}}
    with fiona.open(os.path.join(self.tempdir, 'test-write-gb18030.shp'), 'w', driver='ESRI Shapefile', schema=schema, encoding='gb18030') as c:
        c.writerecords([{'type': 'Feature', 'geometry': {'type': 'Point', 'coordinates': [0, 0]}, 'properties': {'label': u'徐汇区', 'num': 0}}])
    with fiona.open(os.path.join(self.tempdir), encoding='gb18030') as c:
        f = next(iter(c))
        self.assertEqual(f['properties']['label'], u'徐汇区')
        self.assertEqual(f['properties']['num'], 0)
Can write a simplified Chinese shapefile
def test_write_gb18030(self):
    
    schema = {'geometry': 'Point', 'properties': {'label': 'str', 'num': 'int'}}
    with fiona.open(os.path.join(self.tempdir, 'test-write-gb18030.shp'), 'w', driver='ESRI Shapefile', schema=schema, encoding='gb18030') as c:
        c.writerecords([{'type': 'Feature', 'geometry': {'type': 'Point', 'coordinates': [0, 0]}, 'properties': {'label': u'徐汇区', 'num': 0}}])
    with fiona.open(os.path.join(self.tempdir), encoding='gb18030') as c:
        f = next(iter(c))
        self.assertEqual(f['properties']['label'], u'徐汇区')
        self.assertEqual(f['properties']['num'], 0)