aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-03-20 12:46:40 -0500
committerGitHub <noreply@github.com>2021-03-20 12:46:40 -0500
commit64a93f8e222c15373076b6abf6b8f401845bdf57 (patch)
tree208aebc564cf19544513f6bdf64c604c01a71f2b
parente4483719d495ec7fca50ce0e39480d01d565f9de (diff)
parent118ff5c804c3e1e56ea72e3c464c94660848adf8 (diff)
Merge pull request #495 from AttorneyOnline/fix/demos-utf-8
Fix demo playback not using UTF-8 codec
-rw-r--r--src/demoserver.cpp1
1 files changed, 1 insertions, 0 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("%")) {