From: Holger Schurig Date: Thu, 25 Jun 2009 21:46:02 +0000 (+0200) Subject: template_mako: apply cfg.input_encoding on templates as well X-Git-Url: https://oss.titaniummirror.com/gitweb?p=oss-web.git;a=commitdiff_plain;h=eeb875a9c1303e6052c0f5857409d96a57426531 template_mako: apply cfg.input_encoding on templates as well This finally allows templates to contain Umlaut characters. --- diff --git a/plugins/template_mako.py b/plugins/template_mako.py index b8a4db6..4c397eb 100644 --- a/plugins/template_mako.py +++ b/plugins/template_mako.py @@ -29,6 +29,7 @@ def get_template(file): else: lookup = TemplateLookup( directories = (extra_dir, file.style_dir), + input_encoding = file.input_encoding, output_encoding = file.output_encoding, encoding_errors='replace', filesystem_checks = False)