Fix missing utf-8 tag in OCR html export - thx dgonyier :)

Fix #2262
This commit is contained in:
Nikolaj Olsson 2017-03-04 06:52:02 +01:00
parent 123df93728
commit a0ce39d113

View File

@ -7755,8 +7755,13 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
progressBar1.Visible = true;
int imagesSavedCount = 0;
var sb = new StringBuilder();
sb.AppendLine("<!DOCTYPE html>");
sb.AppendLine("<html>");
sb.AppendLine("<head><title>Subtitle images</title></head>");
sb.AppendLine("<head>");
sb.AppendLine("<title>Subtitle images</title></head>");
sb.AppendLine(" <meta charset=\"UTF - 8\" />");
sb.AppendLine(" <title>Subtitle images</title>");
sb.AppendLine("</head>");
sb.AppendLine("<body>");
_fromMenuItem = true;
for (int i = 0; i < _subtitle.Paragraphs.Count; i++)