When user loads a page first time - everytnig's ok, but at second load page encoding breaks... I analized headers - the wrong Content Type header is sent (windows-1251 instead of utf-8).
Any suggestions?
When user loads a page first time - everytnig's ok, but at second load page encoding breaks... I analized headers - the wrong Content Type header is sent (windows-1251 instead of utf-8).
Any suggestions?
Comments
Comment #1
shtirluk commentedI added header in page_cache_fastpath() (cacherouter.inc)
LINE: 186
elseif (function_exists('gzencode')) {
//send gzip header to the browser
header('Content-Type: text/html; charset=utf-8', TRUE);
header('Content-Encoding: gzip');
}
it now works fine but it's kind of hack ^)