]> git.sesse.net Git - vlc/commitdiff
lelombrik: fix title encoding.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 19 Jul 2010 20:25:14 +0000 (22:25 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 19 Jul 2010 20:25:40 +0000 (22:25 +0200)
share/lua/playlist/lelombrik.lua

index b804baceceba47f04d4fd29717053f1893006e71..5de87d8c438aa0e85e342fee68a837ba00c9a7f9 100644 (file)
@@ -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