aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/demoserver.cpp1
-rw-r--r--src/packet_distribution.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp
index fcb5003d..579aa8d3 100644
--- a/src/demoserver.cpp
+++ b/src/demoserver.cpp
@@ -254,6 +254,7 @@ void DemoServer::load_demo(QString filename)
demo_data.clear();
p_path = filename;
QTextStream demo_stream(&demo_file);
+ demo_stream.setCodec("UTF-8");
QString line = demo_stream.readLine();
while (!line.isNull()) {
if (!line.endsWith("%")) {
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 02ed84bc..7ec685a6 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -110,11 +110,11 @@ void AOApplication::append_to_demofile(QString packet_string)
if (get_auto_logging_enabled() && !log_filename.isEmpty())
{
QString path = log_filename.left(log_filename.size()).replace(".log", ".demo");
- append_to_file(packet_string, path, true);
if (!demo_timer.isValid())
demo_timer.start();
else
append_to_file("wait#"+ QString::number(demo_timer.restart()) + "#%", path, true);
+ append_to_file(packet_string, path, true);
}
}