Ticket #97: patchMysqlCharset.diff
| File patchMysqlCharset.diff, 0.7 kB (added by sylvain261, 8 months ago) |
|---|
-
mysql.dbconnection.php
old new 76 76 if($cnx = @$funcconnect ($this->profil['host'], $this->profil['user'], $this->profil['password'])){ 77 77 if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 78 78 && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 79 mysql_query("SET CHARACTER SET'".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx);79 mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 80 80 } 81 81 return $cnx; 82 82 }else{
