[vlc-commits] commit: lelombrik: fix title encoding. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Mon Jul 19 22:26:24 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 19 22:25:14 2010 +0200| [b5746390cd24c1df6fcc0ac06c8108fcf16dfb5e] | committer: Rémi Duraffort 

lelombrik: fix title encoding.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5746390cd24c1df6fcc0ac06c8108fcf16dfb5e
---

 share/lua/playlist/lelombrik.lua |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/share/lua/playlist/lelombrik.lua b/share/lua/playlist/lelombrik.lua
index b804bac..5de87d8 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



More information about the vlc-commits mailing list