Re: [bug fix] multibyte messages are displayed incorrectly on the client

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [bug fix] multibyte messages are displayed incorrectly on the client
Дата
Msg-id 20131217184208.GH19059@momjian.us
обсуждение исходный текст
Ответ на [bug fix] multibyte messages are displayed incorrectly on the client  ("MauMau" <maumau307@gmail.com>)
Ответы Re: [bug fix] multibyte messages are displayed incorrectly on the client
Список pgsql-hackers
On Fri, Dec 13, 2013 at 10:41:17PM +0900, MauMau wrote:
> [Cause]
> While the session is being established, the server cannot use the
> client encoding for message conversion yet, because it cannot access
> system catalogs to retrieve conversion functions.  So, the server
> sends messages to the client without conversion.  In the above
> example, the server sends Japanese UTF-8 messages to psql, which
> expects those messages in SJIS.
> 
> 
> [Fix]
> Disable message localization during session startup.  In other
> words, messages are output in English until the database session is
> established.

I think the question is whether the server encoding or English are
likely to be better for the average client.  My bet is that the server
encoding is more likely correct.

However, you are right that English/ASCII at least will always be
viewable, while there are many server/client combinations that will
produce unreadable characters.

I would be interested to hear other people's experience with this.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: planner missing a trick for foreign tables w/OR conditions
Следующее
От: Gavin Flower
Дата:
Сообщение: Re: SSL: better default ciphersuite