From: | Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr> |
---|---|
To: | frederic massot <frederic(at)juliana-multimedia(dot)com>, pgsql-php(at)postgresql(dot)org |
Subject: | Re: Pb with the French accentuated characters |
Date: | 2002-04-30 13:22:44 |
Message-ID: | 200204301522.44037.jm.poure@freesurf.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Le Mardi 30 Avril 2002 14:51, frederic massot a écrit :
> Since the update of a PC of test (Debian GNU/Linux Woody, Apache
> 1.3.23-1, Php4 4.1.2, Postgresql 7.2.1), the Web sites functioning on
> this PC produce errors during the insertion of French accentuated
> characters ("é", "è", "à", etc...) in the databases.
> An error message with PHP :
> PostgreSQL query failed: ERROR: Invalid UNICODE character sequence
> found (0xe97373)
So I presume your database is Unicode.
> Error messages with psql :
> juliana=> insert into essai values ('était');
> ERROR: Invalid UNICODE character sequence found (0xe97461)
> juliana=> insert into essai values ('ètait');
> ERROR: Invalid UNICODE character sequence found (0xe87461)
> juliana=> insert into essai values ('àtait');
> ERROR: Invalid UNICODE character sequence found (0xe07461)
Enter:
SET CLIENT_ENCODING = 'Latin9'
This will recode backend<->client stream from Unicode to Latin + Euro
encoding. If you don't need Euro support, you could also recode to Latin1.
Otherwise, when importing text from a flat file (Latin) into a unicode
database (UTF8), recode the file using :
recode ..u8 filename.sql
Cheers,
Jean-Michel POURE
From | Date | Subject | |
---|---|---|---|
Next Message | frederic massot | 2002-04-30 13:56:32 | Re: Pb with the French accentuated characters |
Previous Message | frederic massot | 2002-04-30 12:51:55 | Pb with the French accentuated characters |