X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2885C55826 for ; Thu, 24 Feb 2005 16:34:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06146-06 for ; Thu, 24 Feb 2005 16:34:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by svr1.postgresql.org (Postfix) with ESMTP id 12CA0557F9 for ; Thu, 24 Feb 2005 16:34:12 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 68so213689wri for ; Thu, 24 Feb 2005 08:34:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=IgcTxVUMKZiLll0VNeq6FVTjmffBZI+f5vjb3wHAYv2YoZDx+zRkvoU8KhygZ6vwukIHoMYi+Mp8mqsn15Tl2LZYC46wk408qhLMUJxayLx+Fc/ragrfVFARfaS2RMj/v6luNxh45WgIQ8++YFOHzyIQj3RZBTP86tv6tVycKNQ= Received: by 10.54.7.72 with SMTP id 72mr74799wrg; Thu, 24 Feb 2005 08:34:22 -0800 (PST) Received: by 10.54.40.4 with HTTP; Thu, 24 Feb 2005 08:34:22 -0800 (PST) Message-ID: <621eda8a05022408343ec8b6e2@mail.gmail.com> Date: Thu, 24 Feb 2005 17:34:22 +0100 From: Zouari Fourat Reply-To: Zouari Fourat To: pgsql-php@postgresql.org Subject: Encoding problems Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200502/28 X-Sequence-Number: 3002 Hello, I have a problem when trying to insert data with accents (=E9,=E8,=E0,=E7 .= ..) or arabic/chinese caracters. here's a snapshot : [root@apps applications]# psql -Ueserve -W -deserve -f output.sql=20 Mot de passe :=20 psql:output.sql:1: ERREUR: S=E9quence d'octets invalide pour le codage =ABUNICODE=BB : 0xe96469 here's what output.sql contain : INSERT INTO sms_mo("MsgId","DA","SOA","Content","Msg","TimeCreated") VALUES('3','216123456','33437376969','Le cr=E9dit d','Le cr=E9dit de votre compte est bas : charger.','Oct 27 2004 5:00PM'); when replacing the '=E9' with 'e' it works fine... how to do to setup postgresql server to accept this kind of charset ?