From b60009fd5bc038b0e27ce186b0b9bc863f2fc55f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 13 Mar 2018 00:12:27 -0500 Subject: [PATCH] Fix encoding issue, in some cases (?) there was not a bug when running `pserve` on the console, but there *was* a bug when running via mod_wsgi... --- appy/pod/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appy/pod/renderer.py b/appy/pod/renderer.py index 8f54a8c..f45af11 100644 --- a/appy/pod/renderer.py +++ b/appy/pod/renderer.py @@ -72,7 +72,7 @@ DOC_WRONG_FORMAT = 'Format "%s" is not supported.' WARNING_FINALIZE_ERROR = 'Warning: error while calling finalize function. %s' # Default automatic text styles added by pod in content.xml -f = open('%s/styles.in.content.xml' % os.path.dirname(appy.pod.__file__)) +f = open('%s/styles.in.content.xml' % os.path.dirname(appy.pod.__file__), encoding='utf8') CONTENT_POD_STYLES = f.read() f.close()