r15266 by jghali - #9207 : wrong encoding in about dialog

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 24 23:20:21 CEST 2010


Revision: 15266
Author: jghali
Date: 2010-06-24T21:10:09.578200Z
Commit message: #9207 : wrong encoding in about dialog

Changeset: 
M  /branches/Version135/Scribus/scribus/about.cpp

Diffs:
Index: scribus/about.cpp
===================================================================
--- scribus/about.cpp	(revision 15265)
+++ scribus/about.cpp	(revision 15266)
@@ -377,7 +377,8 @@
 	if (authorsFile.open(QIODevice::ReadOnly | QIODevice::Text))
 	{
 		QTextStream inTS(&authorsFile);
-//		inTS.setCodec("UTF-8");
+		inTS.setCodec("UTF-8");
+		inTS.setAutoDetectUnicode(true);
 		QString lineTS;
 		QStringList fieldTS;
 		QString name;
@@ -465,6 +466,8 @@
 	if (translationFile.open(QIODevice::ReadOnly | QIODevice::Text))
 	{
 		QTextStream inTS(&translationFile);
+		inTS.setCodec("UTF-8");
+		inTS.setAutoDetectUnicode(true);
 		QString lineTS;
 		QStringList fieldTS;
 		QString code;
@@ -578,6 +581,7 @@
 	{
 		QTextStream inTS(&linksFile);
 		inTS.setCodec("UTF-8");
+		inTS.setAutoDetectUnicode(true);
 		QString lineTS;
 		bool isTitle = true;
 		result = "<table>";




More information about the scribus-commit mailing list