note 69645 added to function.oci-connect
| From: | sebastien dot barbieri_at_gmaildotcom at osu1 dot php dot net | Date: | Wed, 13 Sep 2006 16:42:17 +0000 |
| Subject: | note 69645 added to function.oci-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117119@lists.php.net to get a copy of this message | ||
When you are using Oracle 9.2+ I would say that you MUST use the CHARSET parameter.
Of course, you will not notice it until there is accented character... so just specify it and you
will avoid a big headache.
So for example here is our Oracle internal conf:
select * from nls_database_parameters;
PARAMETER VALUE
------------------------------ ----------------------------------------
â¦
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_ISO_CURRENCY AMERICA
NLS_CHARACTERSET WE8ISO8859P15
â¦
And there our oci_connect call:
$dbch=ocilogon($user,$pass,$connectString,"WE8ISO8859P15");
Without that, you will get question mark (inversed), squares⦠instead of most accented
character.
Donât forget to use that for writing as well as for reading.
----
Server IP: 193.190.198.20
Probable Submitter: 194.78.5.130
----
Manual Page -- http://www.php.net/manual/en/function.oci-connect.php
Edit -- https://master.php.net/note/edit/69645
Del: integrated -- https://master.php.net/note/delete/69645/integrated
Del: useless -- https://master.php.net/note/delete/69645/useless
Del: bad code -- https://master.php.net/note/delete/69645/bad+code
Del: spam -- https://master.php.net/note/delete/69645/spam
Del: non-english -- https://master.php.net/note/delete/69645/non-english
Del: in docs -- https://master.php.net/note/delete/69645/in+docs
Del: other reasons-- https://master.php.net/note/delete/69645
Reject -- https://master.php.net/note/reject/69645
Search -- https://master.php.net/manage/user-notes.php