Changeset 940

Show
Ignore:
Timestamp:
05/20/08 18:40:50 (7 months ago)
Author:
laurentj
Message:

Ticket #97 bis: Changed the setting of charset with the client connection, in mysql.dbconnection.php. p=Sylvain de Vathaire

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/lib/jelix/CREDITS

    r922 r940  
    142142 - little improvement in jResponseXml (#465) 
    143143 - little bug fix in jZone (#508) 
     144 - little bug fix in mysql.dbconnection.php (#97bis) 
    144145 
    145146Thanks for all users, especially those who reported bugs. :-) 
  • branches/1.0.x/lib/jelix/CREDITS

    r922 r940  
    142142 - little improvement in jResponseXml (#465) 
    143143 - little bug fix in jZone (#508) 
     144 - little bug fix in mysql.dbconnection.php (#97bis) 
    144145 
    145146Thanks for all users, especially those who reported bugs. :-) 
  • branches/1.0.x/lib/jelix/CREDITS

    r922 r940  
    142142 - little improvement in jResponseXml (#465) 
    143143 - little bug fix in jZone (#508) 
     144 - little bug fix in mysql.dbconnection.php (#97bis) 
    144145 
    145146Thanks for all users, especially those who reported bugs. :-) 
  • branches/1.0.x/lib/jelix/CREDITS

    r922 r940  
    142142 - little improvement in jResponseXml (#465) 
    143143 - little bug fix in jZone (#508) 
     144 - little bug fix in mysql.dbconnection.php (#97bis) 
    144145 
    145146Thanks for all users, especially those who reported bugs. :-) 
  • branches/1.0.x/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • branches/1.0.x/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • branches/1.0.x/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • branches/1.0.x/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • trunk/lib/jelix/CREDITS

    r939 r940  
    155155 - little bug fix in jZone (#508) 
    156156 - jResponseHtmlFragment for Ajax content response (#501) 
     157 - little bug fix in mysql.dbconnection.php (#97bis) 
    157158 
    158159Thanks for all users, especially those who reported bugs. :-) 
  • trunk/lib/jelix/CREDITS

    r939 r940  
    155155 - little bug fix in jZone (#508) 
    156156 - jResponseHtmlFragment for Ajax content response (#501) 
     157 - little bug fix in mysql.dbconnection.php (#97bis) 
    157158 
    158159Thanks for all users, especially those who reported bugs. :-) 
  • trunk/lib/jelix/CREDITS

    r939 r940  
    155155 - little bug fix in jZone (#508) 
    156156 - jResponseHtmlFragment for Ajax content response (#501) 
     157 - little bug fix in mysql.dbconnection.php (#97bis) 
    157158 
    158159Thanks for all users, especially those who reported bugs. :-) 
  • trunk/lib/jelix/CREDITS

    r939 r940  
    155155 - little bug fix in jZone (#508) 
    156156 - jResponseHtmlFragment for Ajax content response (#501) 
     157 - little bug fix in mysql.dbconnection.php (#97bis) 
    157158 
    158159Thanks for all users, especially those who reported bugs. :-) 
  • trunk/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • trunk/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • trunk/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
  • trunk/lib/jelix/plugins/db/mysql/mysql.dbconnection.php

    r681 r940  
    55* @author     Croes Gérald, Laurent Jouanneau 
    66* @contributor Laurent Jouanneau 
     7* @contributor Sylvain de Vathaire 
    78* @copyright  2001-2005 CopixTeam, 2005-2007 Laurent Jouanneau 
    89* This class was get originally from the Copix project (CopixDbConnectionMysql, Copix 2.3dev20050901, http://www.copix.org) 
     
    7778         if(isset($this->profil['force_encoding']) && $this->profil['force_encoding'] == true 
    7879            && isset($this->_charsets[$GLOBALS['gJConfig']->charset])){ 
    79              mysql_query("SET CHARACTER SET '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
     80             mysql_query("SET NAMES '".$this->_charsets[$GLOBALS['gJConfig']->charset]."'", $cnx); 
    8081         } 
    8182         return $cnx; 
Download in other formats: Unified Diff Zip Archive