From: RĂ©mi Duraffort Date: Mon, 19 Jul 2010 20:25:14 +0000 (+0200) Subject: lelombrik: fix title encoding. X-Git-Tag: 1.2.0-pre1~5753 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=b5746390cd24c1df6fcc0ac06c8108fcf16dfb5e lelombrik: fix title encoding. --- diff --git a/share/lua/playlist/lelombrik.lua b/share/lua/playlist/lelombrik.lua index b804bacece..5de87d8c43 100644 --- a/share/lua/playlist/lelombrik.lua +++ b/share/lua/playlist/lelombrik.lua @@ -37,6 +37,9 @@ function parse() if string.match( line, "id=\"nom_fichier\">" ) then title = string.gsub( line, ".*\"nom_fichier\">([^<]*).*", "%1" ) + if title then + title = vlc.strings.iconv( "UTF8", "ISO_8859-1", title ) + end elseif string.match( line, "'file'" ) then _,_,path = string.find( line, "'file', *'([^']*)") elseif string.match( line, "flashvars=" ) then