Re: Pb with the French accentuated characters
От | frederic massot |
---|---|
Тема | Re: Pb with the French accentuated characters |
Дата | |
Msg-id | 3CCECCD8.A11B8F8C@juliana-multimedia.com обсуждение исходный текст |
Ответ на | Pb with the French accentuated characters (frederic massot <frederic@juliana-multimedia.com>) |
Список | pgsql-php |
Jean-Michel POURE wrote: > > > 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. I have just tested your solutions: juliana=> select * from essai; un ---- (0 rows) juliana=> insert into essai values ('était'); ERROR: Invalid UNICODE character sequence found (0xe97461) juliana=> SET CLIENT_ENCODING = 'latin9'; SET VARIABLE juliana=> insert into essai values ('était'); INSERT 225971 1 juliana=> select * from essai; un ------ tait (1 row) juliana=> SET CLIENT_ENCODING = 'latin1'; SET VARIABLE juliana=> insert into essai values ('était'); INSERT 225972 1 juliana=> select * from essai; un ------ tait tait (2 rows) There is always a problem with the accents, Arghh !!! Regards. -- ============================================== | FREDERIC MASSOT | | http://www.juliana-multimedia.com | | mailto:frederic@juliana-multimedia.com | ===========================Debian=GNU/Linux===
В списке pgsql-php по дате отправления: