X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=samples%2Fqt%2FCommon%2Fsrc%2FMDIWindow.cxx;h=9f3d6aea6adde6026e8ce2ac7a8e200e255abd27;hb=6cfc06f00da8d94f9493ca7d0af535253f769aa2;hpb=10ce324694ead680e6440f2ba013bde04c5425ec diff --git a/samples/qt/Common/src/MDIWindow.cxx b/samples/qt/Common/src/MDIWindow.cxx index ee3ced6995..9f3d6aea6a 100755 --- a/samples/qt/Common/src/MDIWindow.cxx +++ b/samples/qt/Common/src/MDIWindow.cxx @@ -128,7 +128,9 @@ void MDIWindow::dump() if ( !QFileInfo( file ).completeSuffix().length() ) file += QString( ".bmp" ); - bool res = myView->dump( (Standard_CString)file.toLatin1().constData() ); + const TCollection_AsciiString anUtf8Path (file.toUtf8().data()); + + bool res = myView->dump( anUtf8Path.ToCString() ); QApplication::restoreOverrideCursor(); if ( !res ) {