diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-03-20 12:46:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 12:46:40 -0500 |
| commit | 64a93f8e222c15373076b6abf6b8f401845bdf57 (patch) | |
| tree | 208aebc564cf19544513f6bdf64c604c01a71f2b | |
| parent | e4483719d495ec7fca50ce0e39480d01d565f9de (diff) | |
| parent | 118ff5c804c3e1e56ea72e3c464c94660848adf8 (diff) | |
Merge pull request #495 from AttorneyOnline/fix/demos-utf-8
Fix demo playback not using UTF-8 codec
| -rw-r--r-- | src/demoserver.cpp | 1 |
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("%")) { |
