set character encoding in HTTP header

This commit is contained in:
Roland Gruber 2004-10-02 12:06:03 +00:00
parent 51c74e1b63
commit c6d1ebc98d
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ function setlanguage() {
$locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale"; // set path to translations
bindtextdomain("messages", $locdir);
textdomain("messages");
header("Content-type: text/html; charset=" . $language[1], true);
}
else echo _("Language not defined in session!");
}