Re: Encoding and i18n

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Encoding and i18n
Дата
Msg-id 87sl4otgmo.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Encoding and i18n  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Encoding and i18n  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Encoding and i18n  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Alvaro Herrera" <alvherre@commandprompt.com> writes:

> Gregory Stark wrote:
>> 
>> Reading the commit message about the TZ encoding issue I'm curious why this
>> isn't a more widespread problem. How does gettext now what encoding we want
>> messages in? How do we prevent things like to_char(now(),'month') from
>> producing strings in an encoding different from the database's encoding?
>
> The PO files include encoding information, so it's easy for the server
> to recode them from that to the server (or client) encoding, as
> appropriate.

So does the _() macro automatically recode it to the current server encoding?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Encoding and i18n
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Encoding and i18n