From 01c0b7ecc574c404622a1d56374912026326d934 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 18 Jul 2010 21:25:33 +0200 Subject: [PATCH] wikipedia is always utf-8 --- ox/web/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/wikipedia.py b/ox/web/wikipedia.py index d633a41..d288be6 100644 --- a/ox/web/wikipedia.py +++ b/ox/web/wikipedia.py @@ -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):