Index: twisted/web2/error.py
===================================================================
--- twisted/web2/error.py	(revision 26969)
+++ twisted/web2/error.py	(working copy)
@@ -92,7 +92,7 @@
             "<body><h1>%s</h1>%s</body></html>") % (
         response.code, title, title, message)
     
-    response.headers.setHeader("content-type", http_headers.MimeType('text', 'html'))
+    response.headers.setHeader("content-type", http_headers.MimeType('text', 'html', {'charset':'utf-8'}))
     response.stream = stream.MemoryStream(body)
     
     return response

Fix UTF-7 XSS attacks due to browser charset auto-detection.
Fix UTF-7 XSS attacks due to browser charset auto-detection.

git-svn-id: 81e381228600e5752b80483efd2b45b26c451ea2@4371 e27351fd-9f3e-4f54-a53b-843176b1656c
