Re: invalid byte sequence ?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: invalid byte sequence ?
Дата
Msg-id 20060824134523.GC18349@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: invalid byte sequence ?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: invalid byte sequence ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Martijn van Oosterhout wrote:

> For glibc systems we can get 100% reliable results. Even for other
> systems there's standard code out there for determining the charset.
> But this has been discussed before:
>
> http://archives.postgresql.org/pgsql-hackers/2003-05/msg00744.php
> http://archives.postgresql.org/pgsql-general/2004-04/msg00470.php
> http://archives.postgresql.org/pgsql-hackers/2006-06/msg01027.php
>
> It seems to me that setting the client encoding based on the
> client-locale is the *only* sensible way of doing it. The locale is
> going to effect the results of programs like sort and any scripts used
> to process the data anyway.

Yes please.  This would make the pgsql-es-ayuda list lose a small but
measurable amount of its traffic (which I won't miss).  Non-matching
\encoding settings is just too frequent.

FWIW I'm not sure if it really belongs in libpq, or it must be rather in
psql (and thus in every client).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-general по дате отправления:

Предыдущее
От: "Silvela, Jaime \(Exchange\)"
Дата:
Сообщение: Re: Can't open Postgres at all!!!
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Saving a jpg into Postgresql table