Skip to content

Commit

Permalink
Use same codec hack is above in hope it will fix a crash on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Apr 29, 2024
1 parent a1dda76 commit 1799950
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xmpp/xmpp-core/xmlprotocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ static void createRootXmlTags(const QDomElement &root, QString *xmlHeader, QStri
QString str;
{
QTextStream ts(&str, QIODevice::WriteOnly);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
ts.setCodec("UTF-16");
#endif
e.save(ts, 0);
}

Expand Down

0 comments on commit 1799950

Please sign in to comment.