Skip to content

Commit

Permalink
Merge pull request #58390 from qgis/backport-58370-to-queued_ltr_back…
Browse files Browse the repository at this point in the history
…ports

[Backport queued_ltr_backports] Fix utf8 converion in QgsVectorFileWriter
  • Loading branch information
alexbruy authored Aug 14, 2024
2 parents 1072955 + a1915d6 commit e3d7152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void QgsVectorFileWriter::init( QString vectorFileName,
for ( int i = 0; i < datasourceOptions.size(); i++ )
{
QgsDebugMsgLevel( QStringLiteral( "-dsco=%1" ).arg( datasourceOptions[i] ), 2 );
options[i] = CPLStrdup( datasourceOptions[i].toLocal8Bit().constData() );
options[i] = CPLStrdup( datasourceOptions[i].toUtf8().constData() );
}
options[ datasourceOptions.size()] = nullptr;
}
Expand Down Expand Up @@ -449,7 +449,7 @@ void QgsVectorFileWriter::init( QString vectorFileName,
for ( int i = 0; i < layerOptions.size(); i++ )
{
QgsDebugMsgLevel( QStringLiteral( "-lco=%1" ).arg( layerOptions[i] ), 2 );
options[i] = CPLStrdup( layerOptions[i].toLocal8Bit().constData() );
options[i] = CPLStrdup( layerOptions[i].toUtf8().constData() );
}
options[ layerOptions.size()] = nullptr;
}
Expand Down

0 comments on commit e3d7152

Please sign in to comment.