|
From: Benjamin C. <bc...@us...> - 2005-02-15 13:34:29
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2321 Modified Files: include.php Log Message: Trying to resolve some charset issues Index: include.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/include.php,v retrieving revision 1.129 retrieving revision 1.130 diff -u -r1.129 -r1.130 --- include.php 5 Dec 2004 17:01:32 -0000 1.129 +++ include.php 15 Feb 2005 13:34:19 -0000 1.130 @@ -64,6 +64,17 @@ } define('OPEN_BUG_STATUSES', join(', ', $db->getCol("select status_id from " . TBL_STATUS ." where bug_open = 1"))); + + // Set up translation and character set + @include_once('languages/'.LANGUAGE.'.php'); + if (!defined('CHARSET')) { + if (!empty($STRING['charset'])) { + define('CHARSET', $STRING['charset']); + } else { + define('CHARSET', 'utf-8'); + } + } + } require_once ('inc/db/'.DB_TYPE.'.php'); |