aboutsummaryrefslogtreecommitdiffstats
path: root/pasteme.py
diff options
context:
space:
mode:
Diffstat (limited to 'pasteme.py')
-rwxr-xr-xpasteme.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pasteme.py b/pasteme.py
index 93e569b..6402032 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -55,6 +55,8 @@ def route_paste_get(pid, pformat='colored'):
except pygments.util.ClassNotFound:
pass
return bottle.template('paste', content=content)
+ bottle.response.content_type = 'text/plain; charset=UTF8' # HTTP header
+ bottle.response.charset = 'utf-8' # used to encode response
return content
@bottle.error(404)