-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
void PyConsole_ExecCommand::execute()
{
if ( myCommand != "" ) {
- int ret = getInterp()->run( myCommand.toLatin1().data() );
+ int ret = getInterp()->run(myCommand.toUtf8());
if ( ret < 0 )
myState = PyInterp_Event::ES_ERROR;
else if ( ret > 0 )