]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Dumper.cpp
Salome HOME
Issue #2394: Incorrect selected subsolids in "union" after modifying the geometry...
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Dumper.cpp
index c7b722014030b19ade38609f630f4cba37f31fde..3cc97bdd22620f147b4173bb5cb71d8b30360a44 100644 (file)
@@ -436,7 +436,8 @@ bool ModelHighAPI_Dumper::exportTo(const std::string& theFileName)
   if (!aFile.is_open())
     return false;
 
-  // standard header
+  // standard header (encoding + imported modules)
+  aFile << "# -*- coding: utf-8 -*-" << std::endl << std::endl;
   for (ModulesMap::const_iterator aModIt = myModules.begin();
        aModIt != myModules.end(); ++aModIt) {
     aFile << "from " << aModIt->first << " import ";