Error Contents: (u'\ube44',)
#1
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)
Reply
#2
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
Reply
#3
It is this character:

http://www.fileformat.info/info/unicode/.../index.htm
Reply

Logout Mark Read Team Forum Stats Members Help
Error Contents: (u'\ube44',)0