From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | peter_e(at)gmx(dot)net, tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Proposal: CREATE CONVERSION |
Date: | 2002-07-08 13:33:35 |
Message-ID: | 20020708153335.B13940@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jul 08, 2002 at 09:59:44PM +0900, Tatsuo Ishii wrote:
> > On Sun, Jul 07, 2002 at 12:58:07PM +0200, Peter Eisentraut wrote:
> > > What would be really cool is if we could somehow reuse the conversion
> > > modules provided by the C library and/or the iconv library. For example,
> > ^^^^^^^
> >
> > Very good point. Why use own conversion routines/tables if there is common
> > library for this?
>
> I'm not still sure about the details of conversion map used by
> iconv. Japanese users have enough trouble with the conversin between
> Unicode and othe charsets. This is because there are many variation of
> conversion maps provided by vendors. For example, the conversion map
> used for Unicode and SJIS in PostgreSQL has been carefully designed to
> minimize problems described above. Another issue is the availabilty of
> iconv among platforms. If we are sure that a particlular iconv
> conversion routine is available on all platforms and the conversion
> result is good eough, our conversion routine could be replaced by new
> one using iconv.
This is not problem if we will have some common API. You can use
current conversion tables (maps) and for example I can use iconv
on my i386/Linux.
I don't want to replace current maps if somebody needs it. I would
like to API.
I see iconv is included into glibc now.
> > I unsure with only one argument for encoding function. What if I want
> > to use one generic function for all encodings (for example as API to
> > iconv)?
>
> Use a simple wrap function.
How knows this function to/from encoding?
Karel
--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-07-08 13:44:44 | Re: Proposal: CREATE CONVERSION |
Previous Message | Zeugswetter Andreas SB SD | 2002-07-08 13:15:00 | Re: (A) native Windows port |