mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
ogr provider: don't ignore set encoding if SHAPE_ENCODING is set although OGR
still claims that strings are already UTF-8
This commit is contained in:
parent
95f49beede
commit
fea86ea176
@ -503,7 +503,8 @@ QStringList QgsOgrProvider::subLayers() const
|
||||
void QgsOgrProvider::setEncoding( const QString& e )
|
||||
{
|
||||
#if defined(OLCStringsAsUTF8)
|
||||
if ( !OGR_L_TestCapability( ogrLayer, OLCStringsAsUTF8 ) )
|
||||
QSettings settings;
|
||||
if ( settings.value( "/qgis/ignoreShapeEncoding", true ).toBool() && !OGR_L_TestCapability( ogrLayer, OLCStringsAsUTF8 ) )
|
||||
{
|
||||
QgsVectorDataProvider::setEncoding( e );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user