Skip to content
Permalink
Browse files

set SHAPE_ENCODING to "" when creating new shapefile (follows up 4fb9879

)
  • Loading branch information
minorua committed Apr 26, 2013
1 parent 5616cfa commit f7cce9c6763340b9f8d34b22ea9682daeb616bfe
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -1851,6 +1851,9 @@ QGISEXTERN bool createEmptyDataSource( const QString &uri,
if ( driverName == "ESRI Shapefile" )
{
papszOptions = CSLSetNameValue( papszOptions, "ENCODING", encoding.toLocal8Bit().data() );
// OGR Shapefile fails to create fields if given encoding is not supported by its side
// so disable encoding conversion of OGR Shapefile layer
CPLSetConfigOption( "SHAPE_ENCODING", "" );
}

OGRLayerH layer;

0 comments on commit f7cce9c

Please sign in to comment.
You can’t perform that action at this time.