summaryrefslogtreecommitdiff
path: root/quackleio/gcgio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quackleio/gcgio.cpp')
-rw-r--r--quackleio/gcgio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/quackleio/gcgio.cpp b/quackleio/gcgio.cpp
index e2c569d..0cbce9e 100644
--- a/quackleio/gcgio.cpp
+++ b/quackleio/gcgio.cpp
@@ -333,7 +333,7 @@ bool GCGIO::canRead(QTextStream &stream) const
void GCGIO::write(const Quackle::Game &game, QTextStream &stream)
{
Quackle::PlayerList players = game.players();
- stream.setCodec(QTextCodec::codecForName("UTF-8"));
+ SET_QTEXTSTREAM_TO_UTF8(stream);
stream << "#character-encoding UTF-8" << m_endl;
for (Quackle::PlayerList::iterator it = players.begin(); it != players.end(); ++it)
{