From b1d802f7a9f03d7a23bdbe432fda533c2d3451ae Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sun, 14 Mar 2010 18:17:10 +1300 Subject: [PATCH] Use UTF-8 locale for wikibooks --- htdocs/espri.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/espri.cgi b/htdocs/espri.cgi index 3453701..4774459 100755 --- a/htdocs/espri.cgi +++ b/htdocs/espri.cgi @@ -114,7 +114,8 @@ def wikibooks_espri(wiki_url): to first convert the wikibook to an epub, which can then be turned into a bookizip via the espri function. """ - os.environ['oxCACHE'] = WIKIBOOKS_CACHE + os.environ['oxCACHE'] = os.path.abspath(WIKIBOOKS_CACHE) + os.environ['LANG'] = 'en_NZ.UTF-8' tainted_name = unquote(os.path.basename(urlsplit(wiki_url).path)) bookid = "%s-%s" % (super_bleach(tainted_name), time.strftime('%Y.%m.%d-%H.%M.%S')) -- 2.11.4.GIT