summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2009-04-24 23:50:16 +0000
committerianb <devnull@localhost>2009-04-24 23:50:16 +0000
commit35e0dd7c68c40b19ea1a07550efe1b85c46f9eeb (patch)
treea7e48312df224e0835cf787300818ee0dfa089ba /paste/httpexceptions.py
parentd2db9c36d8ed2cd559e87bb0020672927cc1de14 (diff)
downloadpaste-35e0dd7c68c40b19ea1a07550efe1b85c46f9eeb.tar.gz
fix that last commit
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index 82ad1b0..4d7f1a2 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -207,7 +207,7 @@ class HTTPException(Exception):
args[k.lower()] = escfunc(v)
for key, value in args.items():
if isinstance(value, unicode):
- args[key] = value.encode('ascii', 'utf8')
+ args[key] = value.encode('utf8', 'xmlcharrefreplace')
return template % args
def plain(self, environ):