예제 #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
예제 #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