From 34adfa1b253f732ff6deae1d7f691fb4f1ddb526 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 16 Oct 2010 13:52:59 +0200 Subject: Fixed encoding errors in raw(). --- pastepy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastepy.py b/pastepy.py index 0451f68..10b82a5 100644 --- a/pastepy.py +++ b/pastepy.py @@ -156,7 +156,7 @@ class Paste(object): session.close() self.start_response('200 OK', [('Content-Type', 'text/plain')]) - return [str(paste.text)] + return [paste.text.encode('utf8')] def highlight_stylesheet(self): self.start_response('200 OK', [('Content-Type', 'text/css')]) -- cgit v1.2.3