Topic: Redirect page charset bug

If the webserver and/or php settings default to a different charset than punbb (e.g. utf-8 versus iso-8859-1), then the redirect page that is shown after posting has conflicting charsets in the HTTP headers versus the html code.

In Opera, the charset specified in the HTTP headers takes precendence over that in the HTML document, which means that rather than "inlägget sparat", i see "inl`gget sparat" every time.

Fix: in functions.php, function redirect, find this:

// START SUBST - <pun_char_encoding>
$tpl_redir = str_replace('<pun_char_encoding>', $lang_common['lang_encoding'], $tpl_redir);
// END SUBST - <pun_char_encoding>

and add:

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

Re: Redirect page charset bug

Actually, I think that I modded punbb right after installation for the same reason in header.php (similar header(...) line after the no-cache headers.)