summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')])