diff options
-rw-r--r-- | paste/httpexceptions.py | 2 |
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): |