Skip to content

Commit

Permalink
dwg import: handle filenames with utf8 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 2, 2018
1 parent 5a99678 commit 4945e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/dwg/qgsdwgimporter.cpp
Expand Up @@ -623,7 +623,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa
if ( fi.suffix().toLower() == "dxf" )
{
//loads dxf
QScopedPointer<dxfRW> dxf( new dxfRW( drawing.toUtf8() ) );
QScopedPointer<dxfRW> dxf( new dxfRW( drawing.toLocal8Bit() ) );
if ( !dxf->read( this, false ) )
{
result = DRW::BAD_UNKNOWN;
Expand All @@ -632,7 +632,7 @@ bool QgsDwgImporter::import( const QString &drawing, QString &error, bool doExpa
else if ( fi.suffix().toLower() == "dwg" )
{
//loads dwg
QScopedPointer<dwgR> dwg( new dwgR( drawing.toUtf8() ) );
QScopedPointer<dwgR> dwg( new dwgR( drawing.toLocal8Bit() ) );
if ( !dwg->read( this, false ) )
{
result = dwg->getError();
Expand Down

0 comments on commit 4945e97

Please sign in to comment.