Re: Oracle's Varchar

From: Date: Wed, 28 Jun 2000 10:01:42 +0000
Subject: Re: Oracle's Varchar
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3519@lists.php.net to get a copy of this message
Maybe you're using an NLS_LANG of unicode, or other double byte encoding ? check your enviroment. Meir Kriheli MKsoft computer systems ----- Original Message ----- From: "Olivier Lepretre" <olivier.lepretre@afrilink.net> To: <php-general@lists.php.net> Sent: Wednesday, June 28, 2000 10:37 AM Subject: [PHP] Oracle's Varchar When I fetch a column of type varchar2 with php3, php is returning only the halfsize of the column, one caracter on two is a \0. The result is always truncated to the size of the column, but including the \0s. Exemple : column toto is varchar2(10) containing ABCDEFGHIJ Php is returning : A\0B\0C\0D\0E\0 wich is print ABCDE ... It misses the five last letters because Php had already count 10 chars .... Could anyone help me, I don't want to double the size of all my varchars fields !!! Thanks a lot

« previous php.general (#3519) next »