Updated language engine to support multiple character sets, and added the Chinese translation.

This commit is contained in:
JT Smith 2002-07-07 04:46:11 +00:00
parent a22aeaf155
commit 564392cced
8 changed files with 695 additions and 29 deletions

View file

@ -160,7 +160,11 @@ sub end {
#-------------------------------------------------------------------
sub httpHeader {
my ($charset);
($charset) = WebGUI::SQL->quickArray("select characterSet from language where languageId=".$session{user}{language});
$charset = "ISO-8859-1" if ($charset eq "");
return $session{cgi}->header(
-type => 'text/html; charset='.$charset,
-cookie => $session{header}{cookie},
-status => $session{header}{status}
);