wikipedia is always utf-8

This commit is contained in:
j 2010-07-18 21:25:33 +02:00
parent f1718e4af1
commit 01c0b7ecc5

View file

@ -46,7 +46,7 @@ def getUrlByAllmovieId(allmovieId):
def getWikiData(wikipediaUrl):
url = wikipediaUrl.replace('wikipedia.org/wiki/', 'wikipedia.org/w/index.php?title=')
url = "%s&action=raw" % url
data = readUrlUnicode(url)
data = readUrl(url).decode('utf-8')
return data
def getMovieData(wikipediaUrl):