mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-12 00:06:43 -04:00
fix #2903
git-svn-id: http://svn.osgeo.org/qgis/trunk@14490 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
ada0e13fd4
commit
83421bfba2
@ -1665,6 +1665,13 @@ QGISEXTERN bool createEmptyDataSource( const QString &uri,
|
||||
//create the attribute fields
|
||||
|
||||
QTextCodec* codec = QTextCodec::codecForName( encoding.toLocal8Bit().data() );
|
||||
if ( !codec )
|
||||
{
|
||||
// fall back to "System" codec
|
||||
codec = QTextCodec::codecForLocale();
|
||||
Q_ASSERT( codec );
|
||||
}
|
||||
|
||||
|
||||
for ( std::list<std::pair<QString, QString> >::const_iterator it = attributes.begin(); it != attributes.end(); ++it )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user