[Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

Chris Withers chris at simplistix.co.uk
Fri Jan 20 05:03:03 EST 2006


Andreas Jung wrote:
> --On 19. Januar 2006 18:37:35 +0000 Chris Withers 
> <chris at simplistix.co.uk> wrote:
> 
>> Andreas Jung wrote:
>>
>>>
>>>> Ah, okay, and how would I indicate in my PythonScript return that I'm
>>>> returning something different to what is specified in
>>>> zpublisher_default_encoding?
>>>>
>>> By setting the content-type header _with_ a 'charset' set.
>>
>>
>> A cool :-) Where's the code that checks if this header is present so I
>> can take a look?
>>
> ZPublisher/HTTPResponse.py  (where else :-))

Oh :-S

I was expecting a different patch... so this only affects content 
returned as XML? How come?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list