From: W. Trevor King Date: Fri, 25 Jun 2010 17:27:12 +0000 (-0400) Subject: Configure CherryPy to use UTF-8 X-Git-Tag: 1.0.0~49^2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=43a6f0c4a5f2c8d706569d1ea54af2b0a638bff0;p=be.git Configure CherryPy to use UTF-8 --- 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 index 0000000..d0aa4b2 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/body @@ -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 index 0000000..6d958f4 --- /dev/null +++ b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/27549110-e491-4651-81ab-84de2ed8e14a/comments/aa30c0f4-f428-4cbb-9597-f64cfaf06728/values @@ -0,0 +1,11 @@ +Author: '"W. Trevor King" ' + + +Content-type: text/plain + + +Date: Fri, 25 Jun 2010 17:25:20 +0000 + + +In-reply-to: 6724994b-61de-45f1-b5e9-474a76b49311 + 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)