File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ QgsVectorFileWriter::QgsVectorFileWriter(
9797 // find driver in OGR
9898 OGRSFDriverH poDriver;
9999 QgsApplication::registerOgrDrivers ();
100+
101+ QSettings settings;
102+ CPLSetConfigOption ( " SHAPE_ENCODING" , settings.value ( " /qgis/ignoreShapeEncoding" , true ).toBool () ? " " : 0 );
103+
100104 poDriver = OGRGetDriverByName ( ogrDriverName.toLocal8Bit ().data () );
101105
102106 if ( poDriver == NULL )
@@ -216,7 +220,6 @@ QgsVectorFileWriter::QgsVectorFileWriter(
216220 {
217221 QgsDebugMsg ( " error finding QTextCodec for " + fileEncoding );
218222
219- QSettings settings;
220223 QString enc = settings.value ( " /UI/encoding" , " System" ).toString ();
221224 mCodec = QTextCodec::codecForName ( enc.toLocal8Bit ().constData () );
222225 if ( !mCodec )
You can’t perform that action at this time.
0 commit comments