Active
Project:
Japanese Mobile
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2013 at 02:04 UTC
Updated:
27 Feb 2013 at 12:58 UTC
When I enabled the core page cache and viewed the pages as an anonymous user, they were garbled. I saw the charset in the Content-type header in the response was utf-8 not shift_jis.
As a trial workaround I replaced the header() function in au_softbank_header.inc and docomo_header.inc with drupal_add_http_header() API then the greeking vanished, but I don't know this is suitable.
Does this theme work with core page cache?
Comments
Comment #1
jajathejazzcat commentedI haven't really tested 7.x version with core caching, but I suspect what might be happening is that the core caching is bypassing header() function in inc files.
If drupal_add_http_header() works for both cached and non-cached pages, then by all means you should use it instead of header() function.