From: Javier M. <ece...@gm...> - 2006-10-11 13:28:03
|
A lot of times I made a question to the list, about how to change to utf8 o= n oracle connections. I tried the $conn->charset=3D'utf8' and nothing changes, but today I have s= een this on the font code ( adodb-oci8.inc.php, line 212 ) ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------- if ($mode=3D=3D1) { $this->_connectionID =3D ($this->charSet) ? OCIPLogon($argUsername,$argPassword, $argDatabasename) : OCIPLogon($argUsername,$argPassword, $argDatabasename, $this->charSet) ; if ($this->_connectionID && $this->autoRollback) OCIrollback($this->_connectionID); } else if ($mode=3D=3D2) { $this->_connectionID =3D ($this->charSet) ? OCINLogon($argUsername,$argPassword, $argDatabasename) : OCINLogon($argUsername,$argPassword, $argDatabasename, $this->charSet); } else { $this->_connectionID =3D ($this->charSet) ? OCILogon($argUsername,$argPassword, $argDatabasename) : OCILogon($argUsername,$argPassword, $argDatabasename,$this->charSet); } ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------- Like you can see, the connection is made with the charset parameter, when n= o charset parameter is defined ?=BF? I have changed from this... $this->_connectionID =3D ($this->charSet) ? to this... $this->_connectionID =3D (!$this->charSet) ? and now, I have utf8 connections with Oracle. Somebody can say why these lines are "wrong"? |