Commit 85c0db0c authored by Florian Pritz's avatar Florian Pritz Committed by Lukas Fleischer
Browse files

Set the character set when connecting to mysql



We should not rely on the default server setting staying the same
forever.

Signed-off-by: default avatarFlorian Pritz <bluewind@server-speed.net>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 816a0cf8
......@@ -220,6 +220,8 @@ function db_connect() {
mysql_select_db(AUR_db_name, $handle) or
die("Error selecting AUR database: " . mysql_error());
db_query("SET NAMES 'utf8' COLLATE 'utf8_general_ci';", $handle);
return $handle;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment