Skip to content
Permalink
Browse files

Merge pull request #561 from minorua/create_shape

set SHAPE_ENCODING to "" when creating new shapefile
  • Loading branch information
borysiasty committed Apr 26, 2013
2 parents 02fa729 + f7cce9c commit f3842775a5147b7a8da1639a4bec667a769b7fac
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 f384277

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