Permalink
Browse files

Explicitly set SRT Writer codec to UTF-8

  • Loading branch information...
1 parent 3bb150c commit 6dbdc9166435676b27ce8653ca1e6b7a86548967 @daniel-kristjansson daniel-kristjansson committed May 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmythtv/srtwriter.h
View
1 mythtv/libs/libmythtv/srtwriter.h
@@ -29,6 +29,7 @@ class MTV_PUBLIC SRTWriter
SRTWriter(const QString &fileName) :
m_outFile(fileName), m_outStream(&m_outFile), m_srtCounter(0)
{
+ m_outStream.setCodec("UTF-8");
if (!m_outFile.open(QFile::WriteOnly))
{
LOG(VB_GENERAL, LOG_ERR, QString("Failed to create '%1'")

0 comments on commit 6dbdc91

Please sign in to comment.