diff options
author | John Fultz <jfultz@wolfram.com> | 2016-01-15 12:50:29 -0600 |
---|---|---|
committer | John Fultz <jfultz@wolfram.com> | 2016-01-15 12:50:44 -0600 |
commit | 9da3b038985650bf1f16409abd0a0a7f35de5a62 (patch) | |
tree | 141cd8f37afc286e98c1ac7ff46d3c4a320318a8 /quacker/quacker.cpp | |
parent | 162cd748627bd36a5390143a6df75a5b8fc4436c (diff) |
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.
Diffstat (limited to 'quacker/quacker.cpp')
-rw-r--r-- | quacker/quacker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |