note 97420 modified in book.oci8 by danbrown

From: Date: Mon, 19 Apr 2010 14:04:43 +0000
Subject: note 97420 modified in book.oci8 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168403@lists.php.net to get a copy of this message
In order to use UTF8 charset in Oracle, just indicate the bespoke charset in the connection function. Example: <?php $conn = oci_connect('hr', 'welcome', 'localhost/XE', 'AL32UTF8'); ?> Please look on the manual page of oci_connect for details. If you also want to on the fly localize your app (date formatting, decimal separator, and so on) additionally use NLS values by alter session statements. Never forget to indicate the app's charset to the browser for proper display. --was-- In order to use UTF8 charset in Oracle, just indicate the bespoke charset in the connection function. Example: $conn = oci_connect('hr', 'welcome', 'localhost/XE', 'AL32UTF8'); Please look on the manual page of oci_connect for details. If you also want to on the fly localize your app (date formatting, decimal separator, and so on) additionally use NLS values by alter session statements. Never forget to indicate the app's charset to the browser for proper display. http://php.net/manual/en/book.oci8.php

« previous php.notes (#168403) next »