1 (edited by Spaceeman 2007-08-03 12:27)

Topic: lang_char_encoding missing in http header !

Hi,

I've find some issue about char encoding and resolve it adding this line :

header('Content-Type: text/html; charset='.$lang_common['lang_encoding']);

in the header.php
Good for me...

Have I right ? smile

Re: lang_char_encoding missing in http header !

Moved to Troubleshooting
I don't know what issues you were having, but the meta tag PunBB uses should have the same effect.

3 (edited by Jérémie 2007-08-03 23:41)

Re: lang_char_encoding missing in http header !

Unless his web server had a default charset encoding different from the meta tag (HTTP charset supersede the meta tag) for example. That would explain why setting it by hand with each page sent corrected the issue.

I had this one on an earlier alpha of PunBB 1.3 (when the setup page was still in Latin1, and my Apache was in utf-8).

Re: lang_char_encoding missing in http header !

Fair point (in my mind the meta tag should override the header to allow for more fine-grained control of page content, but the header information does supersede all else).

Re: lang_char_encoding missing in http header !

Well, you can still do it, you just have to tell Apache (or whatever) the charset you want on this location. Less user friendly yup, but seeing how many people screw up charset anyway... maybe not a bad thing wink

Re: lang_char_encoding missing in http header !

I had some issue with accentuated characters in French and Firefox...
PunBB generated pages should differ of charset (changing user languages). Then, the better way, for me, is to set right the header and the meta tag...
My reference is : http://www.w3.org/TR/html4/charset.html
http://validator.w3.org/ helped me to find the problem.

Re: lang_char_encoding missing in http header !

Well, in 1.3 we do send charset via the header smile