summaryrefslogtreecommitdiff
path: root/quackleio/gcgio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quackleio/gcgio.cpp')
-rw-r--r--quackleio/gcgio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/quackleio/gcgio.cpp b/quackleio/gcgio.cpp
index 4c08de6..54067ba 100644
--- a/quackleio/gcgio.cpp
+++ b/quackleio/gcgio.cpp
@@ -329,7 +329,8 @@ bool GCGIO::canRead(QTextStream &stream) const
void GCGIO::write(const Quackle::Game &game, QTextStream &stream)
{
Quackle::PlayerList players = game.players();
- stream.setCodec(QTextCodec::codecForName("ISO-8859-1"));
+ stream.setCodec(QTextCodec::codecForName("UTF-8"));
+ stream << "#character-encoding UTF-8" << endl;
for (Quackle::PlayerList::iterator it = players.begin(); it != players.end(); ++it)
{
stream << "#player" << (*it).id() + 1 << " " << Util::uvStringToQString((*it).abbreviatedName()) << " " << Util::uvStringToQString((*it).name()) << endl;