mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
dwg import: handle filenames with utf8 characters
(cherry picked from commit dd5ed68818380dfb6590677d968ec0e17c3f39c0)
This commit is contained in:
parent
c81c499d44
commit
06aff729b9
@ -596,7 +596,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa
|
||||
if ( fi.suffix().toLower() == QLatin1String( "dxf" ) )
|
||||
{
|
||||
//loads dxf
|
||||
std::unique_ptr<dxfRW> dxf( new dxfRW( drawing.toUtf8() ) );
|
||||
std::unique_ptr<dxfRW> dxf( new dxfRW( drawing.toLocal8Bit() ) );
|
||||
if ( !dxf->read( this, false ) )
|
||||
{
|
||||
result = DRW::BAD_UNKNOWN;
|
||||
@ -605,7 +605,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa
|
||||
else if ( fi.suffix().toLower() == QLatin1String( "dwg" ) )
|
||||
{
|
||||
//loads dwg
|
||||
std::unique_ptr<dwgR> dwg( new dwgR( drawing.toUtf8() ) );
|
||||
std::unique_ptr<dwgR> dwg( new dwgR( drawing.toLocal8Bit() ) );
|
||||
if ( !dwg->read( this, false ) )
|
||||
{
|
||||
result = dwg->getError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user