Kodi Community Forum

Full Version: Error Contents: (u'\ube44',)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
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