Attempt to fix subtitle encoding issue.

Related to #666
parent ab66afb8
......@@ -105,6 +105,7 @@ void SubtitleModel::importSubtitle(const QString filePath, int offset, bool exte
qDebug()<< "srt File";
//parsing srt file
QTextStream stream(&srtFile);
stream.setCodec(QTextCodec::codecForName("UTF-8"));
QString line;
while (stream.readLineInto(&line)) {
line = line.simplified();
......@@ -158,6 +159,7 @@ void SubtitleModel::importSubtitle(const QString filePath, int offset, bool exte
return;
}
QTextStream stream(&assFile);
stream.setCodec(QTextCodec::codecForName("UTF-8"));
QString line;
qDebug() << " correct ass file " << filePath;
scriptInfoSection.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment