From c6d1ebc98de73f0d39e022a10f4d5e475404672c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 2 Oct 2004 12:06:03 +0000 Subject: [PATCH] set character encoding in HTTP header --- lam/lib/config.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lam/lib/config.inc b/lam/lib/config.inc index 3fcf0925..e611749d 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -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!"); }