We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dce1661 commit 973f926Copy full SHA for 973f926
1 file changed
src/cli/TextStream.cpp
@@ -60,6 +60,10 @@ TextStream::TextStream(const QByteArray& array, QIODevice::OpenMode openMode)
60
61
void TextStream::write(const char* str)
62
{
63
+ // Workaround for an issue with QTextStream. Its operator<<(const char *string) will encode the
64
+ // string with a non-UTF-8 encoding. We work around this by wrapping the input string into
65
+ // a QString, thus enforcing UTF-8. More info:
66
+ // https://code.qt.io/cgit/qt/qtbase.git/commit?id=cec8cdba4d1b856e17c8743ba8803349d42dc701
67
*this << QString(str);
68
}
69
0 commit comments