Merge pull request #495 from AttorneyOnline/fix/demos-utf-8
Fix demo playback not using UTF-8 codec
This commit is contained in:
commit
64a93f8e22
@ -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("%")) {
|
||||
|
Loading…
Reference in New Issue
Block a user