pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zouari Fourat <fourat@gmail.com>
To: pgsql-php@postgresql.org
Subject: Encoding problems
Date: Thu, 24 Feb 2005 17:34:22 +0100
Message-ID: <621eda8a05022408343ec8b6e2@mail.gmail.com> (raw)

Hello,
I have a problem when trying to insert data with accents (é,è,à,ç ...)
or arabic/chinese caracters.

here's a snapshot :

[root@apps applications]# psql -Ueserve -W -deserve -f output.sql 
Mot de passe : 
psql:output.sql:1: ERREUR:  Séquence d'octets invalide pour le codage
«UNICODE» : 0xe96469

here's what output.sql contain :
INSERT INTO sms_mo("MsgId","DA","SOA","Content","Msg","TimeCreated")
VALUES('3','216123456','33437376969','Le crédit d','Le crédit de votre
compte est bas : charger.','Oct 27 2004  5:00PM');

when replacing the 'é' with 'e' it works fine...
how to do to setup postgresql server to accept this kind of charset ?



Message-ID: <621eda8a05022408343ec8b6e2@mail.gmail.com>
Permalink:  ../621eda8a05022408343ec8b6e2@mail.gmail.com/
Also on:    postgresql.org/message-id/621eda8a05022408343ec8b6e2@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: fourat@gmail.com
  Subject: Re: Encoding problems
  In-Reply-To: <621eda8a05022408343ec8b6e2@mail.gmail.com>
  References: <621eda8a05022408343ec8b6e2@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox