summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-10-16 13:52:59 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-10-16 13:52:59 +0200
commit34adfa1b253f732ff6deae1d7f691fb4f1ddb526 (patch)
tree86a96b7ed8a95009649e887d107a741d989df3eb
parentece147f7690e4ebfed0079b583df03080caca1b0 (diff)
Fixed encoding errors in raw().
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
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')])