Re: [PHP-DB] Unicode error with PostgreSQL

2006-09-26 Thread Tony Grimes
So does that mean I will always get that error? There's got to be a way around that. Is there at least a way to detect invalid characters before I try to insert? Tony On 9/26/06 1:17 PM, "Niel Archer" <[EMAIL PROTECTED]> wrote: > PHP isn't multibyte aware by default. > > Niel > -- PHP Datab

Re: [PHP-DB] Unicode error with PostgreSQL

2006-09-26 Thread Niel Archer
Hi Tony You can use the multibyte aware string functions for processing. There is also a way to make it use UTF-8 encoding, but I forget how just now. I had the same problem with a MySQL db a while back. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP-DB] Unicode error with PostgreSQL

2006-09-26 Thread Tony Grimes
So does that mean I will always get that error? There's got to be a way around that. Is there at least a way to detect invalid characters before I try to insert? Tony On 9/26/06 1:17 PM, "Niel Archer" <[EMAIL PROTECTED]> wrote: > PHP isn't multibyte aware by default. > > Niel > -- PHP Datab

RE: [PHP-DB] Unicode

2006-04-30 Thread Liber
Make a query "SET NAMES 'UTF8' " first. -Original Message- From: Gerry D [mailto:[EMAIL PROTECTED] Sent: Sunday, April 30, 2006 9:23 AM To: php-db@lists.php.net Subject: [PHP-DB] Unicode I am looking at building a lily register db. Lately there have been lots of introductions from Lat

Re: [PHP-DB] unicode in php{PLS HELP URGENT}

2002-09-23 Thread roslyn jose
hi, ive been going thro the site aand also tried out the code, but im getting fatal error: call to undefined function utf8_encode(). pls help roslyn Dave Smith wrote:$filename="note.txt"; //$fp = fopen ($filename,"r"); $str=utf8_encode(file($filename)); foreach( $str as $line ) echo $line; ?>