X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C44E0474E5C for ; Fri, 21 Feb 2003 04:01:41 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 51738-07 for ; Fri, 21 Feb 2003 04:01:31 -0500 (EST) Received: from hotmail.com (f136.pav1.hotmail.com [64.4.31.136]) by postgresql.org (Postfix) with ESMTP id A4520474E4F for ; Fri, 21 Feb 2003 04:01:30 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 21 Feb 2003 01:01:31 -0800 Received: from 193.227.168.171 by pv1fd.pav1.hotmail.msn.com with HTTP; Fri, 21 Feb 2003 09:01:31 GMT X-Originating-IP: [193.227.168.171] From: "Nathalie Boulos" To: pgsql-admin@postgresql.org Subject: problem: Postgresql and Unicode Date: Fri, 21 Feb 2003 11:01:31 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 Feb 2003 09:01:31.0661 (UTC) FILETIME=[D3C683D0:01C2D987] X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/347 X-Sequence-Number: 7545 Hi everyone, I'm using postgresql-7.2.2-1 under RedHat linux 8.0. I created a unicode DB and trying to insert arabic text through a php script on the web. I'm getting the following error: Warning: pg_exec() query failed: ERROR: Invalid UNICODE character sequence found (0xe40000) the client is a IE browser on a win2000 machine, with arabic support. (I'm forcing client encoding to unicode before i insert data in the DB by adding the following line in the PHP script: pg_exec($db,"set client_encoding='unicode'"); ) Any ideas? I'd greatly appreciate any help and thanks in advance Regards Nathalie _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail