diff options
| author | Crystalwarrior <varsash@gmail.com> | 2021-03-19 20:08:33 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2021-03-20 20:29:17 +0300 |
| commit | 118ff5c804c3e1e56ea72e3c464c94660848adf8 (patch) | |
| tree | 208aebc564cf19544513f6bdf64c604c01a71f2b /src/demoserver.cpp | |
| parent | e4483719d495ec7fca50ce0e39480d01d565f9de (diff) | |
Fix demo playback not using UTF-8 codec, making it impossible to use for Russian chars and other special chars like emoji etc.
(cherry picked from commit f3e96ca6b38a5e069d98f2db4b17dfb7bb3f239b)
Diffstat (limited to 'src/demoserver.cpp')
| -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("%")) { |
