[weboob] [PATCH 2/2] [ina] Fix bug bad characters in titles

Flo weboob at flo.fourcot.fr
Wed Jun 18 14:56:50 CEST 2014


Le 08/06/2014 19:34, Vincent Texier a écrit :
> The parser returns latin1 unicode titles we have to convert to utf-8
> 
[...]
> -
> -            video.title = unicode(self.parser.select(li, 'p.titre', 1).text)
> +            video.title = unicode(self.parser.select(li, 'p.titre', 1).text).encode('latin1').decode('utf8')
>  

Can you give an example for the problem you try to solve?




More information about the weboob mailing list