Skip to content

Commit a13126c

Browse files
committed
OgrProvider: initial encoding setting check (fix #8167)
1 parent afbc9b8 commit a13126c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/providers/ogr/qgsogrprovider.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
335335
ogrLayer = ogrOrigLayer;
336336
if ( ogrLayer )
337337
{
338+
// check that the initial encoding setting is fit for this layer
339+
setEncoding( encoding() );
340+
338341
valid = setSubsetString( mSubsetString );
339342
QgsDebugMsg( "Data source is valid" );
340343
}

0 commit comments

Comments
 (0)