From 70dcff6b3d681bbeae4b9536139426d6d60a46bd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 17 Aug 2007 17:02:15 +0100 Subject: mysql: set connection charset to utf-8 --- update.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index 8daacc969..e15e3be00 100644 --- a/update.php +++ b/update.php @@ -13,8 +13,11 @@ if (DB_TYPE == "pgsql") { pg_query($link, "set client_encoding = 'utf-8'"); pg_set_client_encoding("UNICODE"); + } else { + db_query($link, "SET NAMES utf8"); + db_query($link, "SET CHARACTER SET utf8"); } - + login_sequence($link); $owner_uid = $_SESSION["uid"]; -- cgit v1.2.3-54-g00ecf