Merge pull request #495 from AttorneyOnline/fix/demos-utf-8

Fix demo playback not using UTF-8 codec
This commit is contained in:
oldmud0 2021-03-20 12:46:40 -05:00 committed by GitHub
commit 64a93f8e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("%")) {