Re: More message encoding woes - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: More message encoding woes
Date
Msg-id 49DBEFE9.8030703@tpf.co.jp
Whole thread Raw
In response to Re: More message encoding woes  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: A renewed plea for inclusion of zone.tab
Next
From: Fujii Masao
Date:
Subject: Re: New trigger option of pg_standby