[Zope-dev] ZPublisher: using zope.formlib and z3c.form in Zope 2

Charlie Clark charlie.clark at clark-consulting.eu
Wed Mar 2 13:28:45 EST 2011


Am 02.03.2011, 12:29 Uhr, schrieb yuppie <y.2011 at wcm-solutions.de>:

> getPreferredCharsets()[0] always returns 'utf-8' **if** UTF-8 is  
> accepted.

> If 'utf-8' is not in getPreferredCharsets(), it is not very likely that
> the browser speaks UTF-8 and processInputs will not even try to decode
> with UTF-8. In that case it might be better to respond with an accepted
> encoding.

I think you are drawing the wrong conclusion - some browsers (Internet  
Explorer and Safari spring to mind but this will also be the behaviour in  
Opera from 11.10) simply don't have an accept-charset header and the W3C  
says this means you can throw anything at them, in which case UTF-8 is a  
good choice.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226


More information about the Zope-Dev mailing list