aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-06-25 13:27:12 -0400
committerW. Trevor King <wking@drexel.edu>2010-06-25 13:27:12 -0400
commit43a6f0c4a5f2c8d706569d1ea54af2b0a638bff0 (patch)
tree957b29fc78c5ee9ee554c9a19fc84e7afe3a0367 /interfaces
parent7551e989d0b3eacfb0a40b9b4a971e844ff3ed50 (diff)
downloadbugseverywhere-43a6f0c4a5f2c8d706569d1ea54af2b0a638bff0.tar.gz
Configure CherryPy to use UTF-8
Diffstat (limited to 'interfaces')
-rwxr-xr-xinterfaces/web/cfbe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/interfaces/web/cfbe.py b/interfaces/web/cfbe.py
index e8d80ca..68c484d 100755
--- a/interfaces/web/cfbe.py
+++ b/interfaces/web/cfbe.py
@@ -32,7 +32,11 @@ options = parse_arguments()
WebInterface = web.WebInterface(path.abspath(options['bug_root']), template_dir)
-cherrypy.config.update({'tools.staticdir.root': path.join(module_dir, 'static')})
+cherrypy.config.update({
+ 'tools.encode.on': True,
+ 'tools.encode.encoding': 'utf8',
+ 'tools.staticdir.root': path.join(module_dir, 'static'),
+ })
app_config = { '/static': { 'tools.staticdir.on': True,
'tools.staticdir.dir': '', } }
cherrypy.quickstart(WebInterface, '/', app_config)