Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
b961dbc7
Commit
b961dbc7
authored
Jan 10, 2021
by
Jean-Baptiste Mardelle
Browse files
Attempt to fix subtitle encoding issue.
Related to
#666
parent
eefecf92
Pipeline
#47166
passed with stage
in 10 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/model/subtitlemodel.cpp
View file @
b961dbc7
...
...
@@ -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
();
...
...
Eugen Mohr
@emohr
mentioned in issue
#666 (closed)
·
Jan 10, 2021
mentioned in issue
#666 (closed)
mentioned in issue #666
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment