--- http_response.py-old 2005-08-21 16:53:11.000000000 +0200 +++ http_response.py 2005-08-21 16:50:40.000000000 +0200 @@ -155,13 +155,13 @@ self.buffered = True self.javascript_code = None - def set_content_type(self, content_type, charset='iso-8859-1'): - """(content_type : string, charset : string = 'iso-8859-1') + def set_content_type(self, content_type, charset=None): + """(content_type : string, charset : string = None) Set the content type of the response to the MIME type specified by - 'content_type'. Also sets the charset, defaulting to 'iso-8859-1'. + 'content_type'. Also sets the charset, defaulting to self.DEFAULT_CHARSET. """ - self.charset = charset + self.charset = charset or self.DEFAULT_CHARSET self.content_type = content_type def set_charset(self, charset):