andrewleech / plugin.video.netflixbmc

NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
http://forum.kodi.tv/showthread.php?tid=211574
GNU General Public License v2.0
56 stars 29 forks source link

Fixes for non-ASCII characters #14

Closed Carst-Tankink closed 9 years ago

Carst-Tankink commented 9 years ago

These three commits should handle non-ASCII characters in TV-series (episodes), as reported in issue #13 There might be other cases that have not been reported/encountered. Also, without test cases, I am not sure this fully fixes the problem, since Unicode handling remains finicky.

As far as I can see, the htmlParser.unescape uses the ascii codec by default, so anything you pass in needs to be decoded.

The second commit is a quick fix, and seems to be a case that was missed in a previous UTF-8 fix. The third commit factors out the cleaning of 'special' characters in titles, taking care of the UTF-8 conversion for that situation in a single location.

horstepipe commented 9 years ago

Works perfect here, thank you!!! (Win 8.1, Gotham 13.2, German Netflix)

andrewleech commented 9 years ago

Thanks for the patch, looks good!