summaryrefslogtreecommitdiff
path: root/packages/notez/notez-1.1.0/fix-encoding.patch
blob: 54e809b431e25f00a1bc248ac07ea1e9e8659d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- notez-1.1.0/editWindow.cpp.orig	2002-11-17 17:40:08 +0100
+++ notez-1.1.0/editWindow.cpp	2004-12-22 14:02:13 +0100
@@ -32,6 +32,7 @@
     } else {
 
       QTextStream inStream(&datei);
+	  inStream.setEncoding(QTextStream::UnicodeUTF8);
       editArea->setText(inStream.read());
       datei.close();
 
@@ -53,6 +54,7 @@
   } else {
 
     QTextStream outStream(&datei);
+	outStream.setEncoding(QTextStream::UnicodeUTF8);
     outStream << editArea->text();
     datei.close();
     this->accept();