Ejemplo n.º 1
0
 def filter_output(self, request, output):
     output = Publisher.filter_output(self, request, output)
     resp = request.response
     if resp.get_header("Content-Type") in (None, "text/html"):
         resp.set_header("Content-Type", "text/html; charset=%s" % language.encoding())
     return output
Ejemplo n.º 2
0
	def filter_output(self, request, output):
		output = Publisher.filter_output(self, request, output)
		#resp = request.response
		#if resp.get_header('Content-Type') in (None, 'text/html'):
		#	resp.set_header('Content-Type','text/html; charset=%s' % language.encoding() )
		return output