Salome HOME
Merge branch 'V9_2_2_BR'
[modules/gui.git] / src / PVServerService / PVServer_ServiceWrapper.cxx
index f086ba2071fc98de1c3cef0c2017e2bb856a9fb3..d0673781ffcebc31875ba0c94b0c4e73a302a687 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2015-2019  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
@@ -102,7 +102,7 @@ std::string PVServer_ServiceWrapper::FindOrStartPVServer(int port)
       PyErr_Print();
       throw SALOME_Exception("Unable to invoke PVSERVER service!");
     }
-  return std::string(PyString_AsString(obj));
+  return std::string(PyUnicode_AsUTF8(obj));
 }