From 9da3b038985650bf1f16409abd0a0a7f35de5a62 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Fri, 15 Jan 2016 12:50:29 -0600 Subject: Yet more places with bad streaming encoding. Okay...I think this fixes all file streams to be UTF-8 except for GCGs, which require less trivial effort. --- quacker/quacker.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'quacker/quacker.cpp') diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp index 6b5becb..4b7f29c 100644 --- a/quacker/quacker.cpp +++ b/quacker/quacker.cpp @@ -2077,6 +2077,7 @@ void TopLevel::writeAsciiToFile(const QString &text, const QString &filename) } QTextStream stream(&file); + stream.setCodec(QTextCodec::codecForName("UTF-8")); stream << text << "\n"; file.close(); @@ -2102,6 +2103,7 @@ void TopLevel::print() } QTextStream stream(&file); + stream.setCodec(QTextCodec::codecForName("UTF-8")); //stream << printer.html() << "\n"; file.close(); -- cgit v1.2.3