diff -r 5b01a94f9c64 propside/mainwindow.cpp
--- a/propside/mainwindow.cpp	Mon May 07 13:49:43 2012 -0700
+++ b/propside/mainwindow.cpp	Tue May 08 23:48:54 2012 -0700
@@ -32,6 +32,8 @@
 #include "qextserialenumerator.h"
 #include "Sleeper.h"
 
+#include <QDataStream>
+
 #define SD_TOOLS
 #define APPWINDOW_MIN_HEIGHT 480
 #define APPWINDOW_MIN_WIDTH 780
@@ -470,9 +472,11 @@
         QFile file(fileName);
         if (file.open(QFile::ReadOnly))
         {
-            QTextStream in(&file);
-            data = in.readAll();
+			QByteArray buffer(file.size(),0);
+            QDataStream in(&file);
+            in.readRawData(buffer.data(),file.size());
             file.close();
+            data = QString::fromUtf8(buffer.data(),buffer.size());
             data.replace('\t',"    ");
             QString sname = this->shortFileName(fileName);
             if(editorTabs->count()>0) {
@@ -774,8 +778,8 @@
         editorTabs->setTabToolTip(n,fileName);
         if (!fileName.isEmpty()) {
             QFile file(fileName);
-            if (file.open(QFile::WriteOnly | QFile::Text)) {
-                file.write(data.toAscii());
+            if (file.open(QFile::WriteOnly)) {
+                file.write(data.toUtf8());
                 file.close();
             }
         }
@@ -796,8 +800,8 @@
         editorTabs->setTabText(tab,shortFileName(fileName));
         if (!fileName.isEmpty()) {
             QFile file(fileName);
-            if (file.open(QFile::WriteOnly | QFile::Text)) {
-                file.write(data.toAscii());
+            if (file.open(QFile::WriteOnly)) {
+                file.write(data.toUtf8());
                 file.close();
             }
         }
@@ -825,8 +829,8 @@
 
         if (!fileName.isEmpty()) {
             QFile file(fileName);
-            if (file.open(QFile::WriteOnly | QFile::Text)) {
-                file.write(data.toAscii());
+            if (file.open(QFile::WriteOnly)) {
+				file.write(data.toUtf8());
                 file.close();
             }
             setCurrentFile(fileName);
