Configure CherryPy to use UTF-8
authorW. Trevor King <wking@drexel.edu>
Fri, 25 Jun 2010 17:27:12 +0000 (13:27 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 25 Jun 2010 17:27:12 +0000 (13:27 -0400)
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/body [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/values [new file with mode: 0644]
interfaces/web/cfbe.py

diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/body
new file mode 100644 (file)
index 0000000..d0aa4b2
--- /dev/null
@@ -0,0 +1 @@
+This should fix it.
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/values
new file mode 100644 (file)
index 0000000..6d958f4
--- /dev/null
@@ -0,0 +1,11 @@
+Author: '"W. Trevor King" <wking@drexel.edu>'
+
+
+Content-type: text/plain
+
+
+Date: Fri, 25 Jun 2010 17:25:20 +0000
+
+
+In-reply-to: 6724994b-61de-45f1-b5e9-474a76b49311
+
index e8d80ca1111b96ad1e8f4f4298e428a16e39b1d6..68c484d86293e6013ee6907d3fc4c17d23313bb3 100755 (executable)
@@ -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)