Обсуждение: iconv -c ?

Поиск
Список
Период
Сортировка

iconv -c ?

От
"Jan-Peter Seifert"
Дата:
Hello,
 
it seems ( for quite some time now ) that PostgreSQL is using the -c option of iconv when exporting data to a different encoding:
http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html
 
- e.g. the Euro sign is removed when exporting LATIN1 databases to UTF8.
 
I'm not sure, but in the past it was different and those characters caused error messages instead.
 
So I wonder since when incompatible characters are removed?
 
Could someone tell me, please?
 
Thank you very much!
 
Peter
 

Re: iconv -c ?

От
Peter Eisentraut
Дата:
On Mon, 2013-07-15 at 16:55 +0200, Jan-Peter Seifert wrote:
> it seems ( for quite some time now ) that PostgreSQL is using the -c
> option of iconv when exporting data to a different encoding:
> http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html

PostgreSQL doesn't use iconv at all.



Re: iconv -c ?

От
"Jan-Peter Seifert"
Дата:
Gesendet: Sonntag, 21. Juli 2013 um 16:03 Uhr
Von: "Peter Eisentraut" <peter_e@gmx.net>
 
> On Mon, 2013-07-15 at 16:55 +0200, Jan-Peter Seifert wrote:

> > it seems ( for quite some time now ) that PostgreSQL is using the -c
> > option of iconv when exporting data to a different encoding:
> > http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html

> PostgreSQL doesn't use iconv at all.

Hello Peter,

sure? The Windows versions of PostgreSQL ( 8.4 - 9.2 ) have an iconv.dll in their bin folder.

I should test the behaviour on Linux then.

With best regards,

Peter
 


Re: iconv -c ?

От
Peter Eisentraut
Дата:
On 7/22/13 5:06 AM, Jan-Peter Seifert wrote:
> Gesendet: Sonntag, 21. Juli 2013 um 16:03 Uhr
> Von: "Peter Eisentraut" <peter_e@gmx.net>
>
>> On Mon, 2013-07-15 at 16:55 +0200, Jan-Peter Seifert wrote:
>
>>> it seems ( for quite some time now ) that PostgreSQL is using the -c
>>> option of iconv when exporting data to a different encoding:
>>> http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html
>
>> PostgreSQL doesn't use iconv at all.
>
> Hello Peter,
>
> sure? The Windows versions of PostgreSQL ( 8.4 - 9.2 ) have an iconv.dll in their bin folder.

That might be because it's a dependency of gettext.