Error Contents: (u'\ube44',) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Error Contents: (u'\ube44',) (/showthread.php?tid=162140) |
Error Contents: (u'\ube44',) - andylau - 2013-04-11 Need help with this ERROR: Error Contents: (u'\ube44',) check what wrong with my code? when i try to scrap like this: addDir('NEW VIDEOS...','http://www.khmer2all.com/more.php?load=20',12,'') def listcage(url): link = GetContent(url) newlink = ''.join(link.splitlines()).replace('\t','') match=re.compile('<a href="(.+?)"><img src="(.+?)" alt="(.+?)" class="imag" width="107" height="72" /></a>').findall(newlink) if(len(match) >= 1): for vLink,vpic,vLinkName in match: addDir(vLinkName,vLink,3,vpic) RE: Error Contents: (u'\ube44',) - Bstrdsmkr - 2013-04-11 There's a non-latin character in there somewhere. You need to check the source site and find out what it's encoded with, then decode it to Unicode, then reencode to utf-8 RE: Error Contents: (u'\ube44',) - Kib - 2013-04-11 It is this character: http://www.fileformat.info/info/unicode/char/BE44/index.htm |