Problème de headers en cas de recalcul de page
Dans le cas d'un site encodé en iso-8859-1 transformé en utf-8 via spip, les headers envoyés au navigateur en cas de recalcul d'une page (?var_mode=recalcul) comprennent un encodage en iso-8859-1 pour l'espace public avec les squelettes de la distribution.
Response Headers - http://site_test/?var_mode=recalcul Date: Wed, 21 Jun 2006 08:23:44 GMT Server: Apache/1.3.34 (Debian) PHP/4.4.2-1.1 mod_ssl/2.8.25 [[OpenSSL]]/0.9.8a X-Powered-By: PHP/4.4.2-1.1 Vary: Cookie,Accept-Encoding Composed-By: SPIP 1.9 beta 3 ` www.spip.net Keep-Alive: timeout=15, max=96 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 200 OK
A noter que le code html comprend bien utf-8
Quand on visualise la même page sans recalcul, l'encodage envoyé dans les headers est correct
Response Headers - http://site_test/ Date: Wed, 21 Jun 2006 08:28:47 GMT Server: Apache/1.3.34 (Debian) PHP/4.4.2-1.1 mod_ssl/2.8.25 [[OpenSSL]]/0.9.8a X-Powered-By: PHP/4.4.2-1.1 Vary: Cookie, Accept-Encoding, Accept-Encoding Composed-By: SPIP 1.9 beta 3 ` www.spip.net X-Spip-Cache: 7200 Cache-Control: max-age=7200 Last-Modified: Wed, 21 Jun 2006 08:23:45 GMT Content-Encoding: gzip Content-Type: text/html; charset=utf-8 200 OK