diff options
author | Andrew Dolgov <[email protected]> | 2007-08-21 11:47:25 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-21 11:47:25 +0100 |
commit | bddc9788ef5c572818b19a8bfa369dc464f5482b (patch) | |
tree | 67e2996486dd6e1e75d326ced6a1fbf2f0c06edd /backend.php | |
parent | 319f05733b76bf1f0932761e1ac53512f7091bc9 (diff) |
new config option: MYSQL_CHARSET
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend.php b/backend.php index bbfa8ca23..4b749f9a9 100644 --- a/backend.php +++ b/backend.php @@ -50,8 +50,10 @@ pg_query("set client_encoding = 'UTF-8'"); pg_set_client_encoding("UNICODE"); } else { -// db_query($link, "SET NAMES utf8"); -// db_query($link, "SET CHARACTER SET utf8"); + if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) { + db_query($link, "SET NAMES " . MYSQL_CHARSET); + db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET); + } } $op = $_REQUEST["op"]; |