From: Gilles DAVID Date: Tue, 6 Jun 2017 15:14:50 +0000 (+0200) Subject: Porting Python3: Encode URL X-Git-Tag: V9_0_0~5^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45975aed4864eef55252b677f9333224294e8df4;p=modules%2Fhomard.git Porting Python3: Encode URL --- diff --git a/src/HOMARD_I/HOMARD_Gen_i.cxx b/src/HOMARD_I/HOMARD_Gen_i.cxx index 5b5dacc2..4d44ae9e 100644 --- a/src/HOMARD_I/HOMARD_Gen_i.cxx +++ b/src/HOMARD_I/HOMARD_Gen_i.cxx @@ -33,6 +33,7 @@ #include "HOMARD_version.h" #include "utilities.h" +#include "Basics_Utils.hxx" #include "Utils_SINGLETON.hxx" #include "Utils_CorbaException.hxx" #include "SALOMEDS_Tool.hxx" @@ -4351,7 +4352,7 @@ SALOMEDS::TMPFile* HOMARD_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent, // HOMARD data file name std::string aFileName = ""; if (isMultiFile) - aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()); + aFileName = SALOMEDS_Tool::GetNameFromPath(Kernel_Utils::encode(aStudy->URL())); aFileName += "_HOMARD.dat"; // initialize sequence of file names @@ -4476,7 +4477,7 @@ CORBA::Boolean HOMARD_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent, // HOMARD data file name std::string aFileName = ""; if (isMultiFile) - aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL()); + aFileName = SALOMEDS_Tool::GetNameFromPath(Kernel_Utils::encode(aStudy->URL())); aFileName = tmpDir + aFileName + "_HOMARD.dat"; StudyContext& context = myContextMap[ aStudy->StudyId() ];