Re: Encoding and i18n

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Encoding and i18n
Дата
Msg-id 20071006151555.GE5618@alvh.no-ip.org
обсуждение исходный текст
Ответ на Encoding and i18n  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Encoding and i18n  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
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.

Of course, then it is up to the translator to get it right ... but I
think when he doesn't, people notice fairly quickly.

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


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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: [SQL] Why does the sequence skip a number with generate_series?
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Encoding and i18n