From e3612b3d12ce24f9eaaa1926d1086bdba8d13369 Mon Sep 17 00:00:00 2001 From: Andre D Date: Fri, 25 Jan 2013 18:20:57 -0500 Subject: [PATCH] Wiki: Fix unicode encoding issue --- r2/r2/lib/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/filters.py b/r2/r2/lib/filters.py index c570bf530..dea74ed4d 100644 --- a/r2/r2/lib/filters.py +++ b/r2/r2/lib/filters.py @@ -258,7 +258,7 @@ def wikimarkdown(text): renderer=snudown.RENDERER_WIKI) # TODO: We should test how much of a load this adds to the app - soup = BeautifulSoup(text) + soup = BeautifulSoup(text.decode('utf-8')) images = soup.findAll('img') if images: