Diffstat (limited to 'core/multimedia/opieplayer/om3u.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/om3u.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/om3u.cpp b/core/multimedia/opieplayer/om3u.cpp index 8b92a8c..778eb22 100644 --- a/core/multimedia/opieplayer/om3u.cpp +++ b/core/multimedia/opieplayer/om3u.cpp @@ -69,2 +69,3 @@ void Om3u::readM3u() { QTextStream t(&f); + t.setEncoding(QTextStream::UnicodeUTF8); QString s; @@ -99,2 +100,3 @@ void Om3u::readPls() { //it's a pls file QTextStream t( &f ); + t.setEncoding(QTextStream::UnicodeUTF8); QString s; @@ -135,2 +137,4 @@ void Om3u::write() { //writes list to m3u file QString list; + QTextStream t(&f); + t.setEncoding(QTextStream::UnicodeUTF8); if(count()>0) { @@ -138,5 +142,4 @@ void Om3u::write() { //writes list to m3u file // qDebug(*it); - list += *it+"\n"; + t << *it << "\n"; } - f.writeBlock( list, list.length() ); } |