VirtualMailManager/cli/config.py
branchv0.7.x
changeset 658 ad967c4b7fe5
parent 643 df1e3b67882a
child 659 a6b6b0937cae
--- a/VirtualMailManager/cli/config.py	Sun Dec 02 14:54:24 2012 +0000
+++ b/VirtualMailManager/cli/config.py	Sun Dec 02 15:51:17 2012 +0000
@@ -89,7 +89,7 @@
     def _save_changes(self):
         """Writes changes to the configuration file."""
         copy2(self._cfg_filename, self._cfg_filename + '.bak')
-        with open(self._cfg_filename, 'w') as self._cfg_file:
+        with open(self._cfg_filename, 'w', encoding='utf-8') as self._cfg_file:
             self.write(self._cfg_file)
 
 del _