UI/DiffDialog.py

changeset 45
9a18f4dbb493
parent 42
23b45a742e17
child 55
b5c84934de9c
--- a/UI/DiffDialog.py	Sun Jan 10 13:59:15 2010 +0000
+++ b/UI/DiffDialog.py	Sun Jan 10 19:19:52 2010 +0000
@@ -300,7 +300,7 @@
         fname = Utilities.toNativeSeparators(fname)
         
         try:
-            f = open(fname, "w")
+            f = open(fname, "w", encoding = "utf-8")
             txt = self.contents.toPlainText()
             try:
                 f.write(txt)
@@ -324,7 +324,7 @@
         except IOError:
             filemtime1 = ""
         try:
-            f1 = open(self.filename1, "r")
+            f1 = open(self.filename1, "r", encoding = "utf-8")
             lines1 = f1.readlines()
             f1.close()
         except IOError:
@@ -340,7 +340,7 @@
         except IOError:
             filemtime2 = ""
         try:
-            f2 = open(self.filename2, "r")
+            f2 = open(self.filename2, "r", encoding = "utf-8")
             lines2 = f2.readlines()
             f2.close()
         except IOError:

eric ide

mercurial