Procházet zdrojové kódy

UI: Always parse log contents for Log Viewer as UTF-8

Matt Gajownik před 5 roky
rodič
revize
fff7d5b8d4
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      UI/log-viewer.cpp

+ 1 - 0
UI/log-viewer.cpp

@@ -101,6 +101,7 @@ void OBSLogViewer::InitLog()
 
 	if (file.open(QIODevice::ReadOnly)) {
 		QTextStream in(&file);
+		in.setCodec("UTF-8");
 
 		while (!in.atEnd()) {
 			QString line = in.readLine();