mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Set the character set when connecting to mysql
We should not rely on the default server setting staying the same forever. Signed-off-by: Florian Pritz <bluewind@server-speed.net> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
816a0cf8d7
commit
85c0db0ccd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue