Re: More message encoding woes

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: More message encoding woes
Дата
Msg-id 49DBEFE9.8030703@tpf.co.jp
обсуждение исходный текст
Ответ на Re: More message encoding woes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> Hiroshi Inoue wrote:
>>> What is wrong with checking if the codeset is valid using iconv_open()?
> 
>> That would probably work as well. We'd have to decide what we'd try to 
>> convert from with iconv_open().
> 
> The problem I have with that is that you are now guessing at *two*
> platform-specific encoding names not one, plus hoping there is a
> conversion between the two.

AFAIK iconv_open() supports all combinations of the valid encoding
values. Or we may be able to check it using the same encoding for
both from and to.

regards,
Hiroshi Inoue



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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: A renewed plea for inclusion of zone.tab
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: New trigger option of pg_standby