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

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


Revision: 15267
Author: jghali
Date: 2010-06-24T21:15:35.345695Z
Commit message: #9207 : wrong encoding in about dialog

Changeset: 
M  /trunk/Scribus/scribus/ui/about.cpp

Diffs:
Index: scribus/ui/about.cpp
===================================================================
--- scribus/ui/about.cpp	(revision 15266)
+++ scribus/ui/about.cpp	(revision 15267)
@@ -378,7 +378,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;
@@ -466,6 +467,8 @@
 	if (translationFile.open(QIODevice::ReadOnly | QIODevice::Text))
 	{
 		QTextStream inTS(&translationFile);
+		inTS.setCodec("UTF-8");
+		inTS.setAutoDetectUnicode(true);
 		QString lineTS;
 		QStringList fieldTS;
 		QString code;
@@ -579,6 +582,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