> = Comment - Entry #9 by ajung on May 26, 2007 9:43 pm
> getPreferredCharsets() returns an empty list if HTTP_ACCEPT_CHARSET is
> not present in the request. There is a dedicated test for this case in
> test_httpcharsets.py. I can't see how it can return 'iso-8859-15' or even
> 'utf-8'?!
A Zope2 request *always* says that it has *any* header starting with
'HTTP_', which defeats that test.
> = Comment - Entry #9 by ajung on May 26, 2007 9:43 pm
> getPreferredCha rsets() returns an empty list if HTTP_ACCEPT_CHARSET is ts.py. I can't see how it can return 'iso-8859-15' or even
> not present in the request. There is a dedicated test for this case in
> test_httpcharse
> 'utf-8'?!
A Zope2 request *always* says that it has *any* header starting with
'HTTP_', which defeats that test.