r19505 by jghali - #12685 related: fix encoding issue in desaxeString() function

scribus-commit scribus-commit at lists.scribus.net
Sat Sep 13 21:12:23 UTC 2014


Author: jghali
Date: Sat Sep 13 21:12:23 2014
New Revision: 19505

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19505
Log:
#12685 related: fix encoding issue in desaxeString() function

Modified:
    trunk/Scribus/scribus/util_text.cpp

Modified: trunk/Scribus/scribus/util_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19505&path=/trunk/Scribus/scribus/util_text.cpp
==============================================================================
--- trunk/Scribus/scribus/util_text.cpp (original)
+++ trunk/Scribus/scribus/util_text.cpp Sat Sep 13 21:12:23 2014
@@ -59,7 +59,9 @@
 	assert(!saxedString.isEmpty());
 
 	Serializer* dig = doc->textSerializer();
-	dig->parseMemory(saxedString.toStdString().c_str(), saxedString.length());
+
+	QByteArray utf8Data = saxedString.toUtf8();
+	dig->parseMemory(utf8Data.constData(), utf8Data.length());
 
 	StoryText* story = dig->result<StoryText>();
 	assert (story != NULL);




More information about the scribus-commit mailing list