Ensure MySQL returns things in UTF-8
This commit is contained in:
parent
26d33af6e2
commit
44e48def1d
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ function elec_sql_open () {
|
|||
elec_sql_close ($handle);
|
||||
return FALSE;
|
||||
}
|
||||
mysql_query ("SET NAMES 'utf8'", $handle);
|
||||
|
||||
return $handle;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue