1.1 --- a/XSLForms/Resources/WebResources.py Sun Oct 12 19:47:09 2008 +0200
1.2 +++ b/XSLForms/Resources/WebResources.py Sat Oct 25 22:37:00 2008 +0200
1.3 @@ -104,8 +104,9 @@
1.4 not be overridden)
1.5 """
1.6
1.7 - path_encoding = "utf-8"
1.8 - encoding = "utf-8"
1.9 + #path_encoding = "utf-8"
1.10 + #encoding = "utf-8"
1.11 +
1.12 template_resources = {}
1.13 in_page_resources = {}
1.14 init_resources = {}
1.15 @@ -432,7 +433,13 @@
1.16
1.17 # Start the response.
1.18
1.19 - encoding = attributes.get("encoding") or self.encoding or trans.default_charset
1.20 + if attributes.has_key("encoding"):
1.21 + encoding = attributes["encoding"] # NOTE: Potentially redundant.
1.22 + elif hasattr(self, "encoding"):
1.23 + encoding = self.encoding
1.24 + else:
1.25 + encoding = trans.default_charset
1.26 +
1.27 content_type = content_type or WebStack.Generic.ContentType("application/xhtml+xml", encoding)
1.28 trans.set_content_type(content_type)
1.29