X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C3612D8A60 for ; Thu, 8 Sep 2005 14:38:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60689-08 for ; Thu, 8 Sep 2005 17:38:39 +0000 (GMT) Received: from fep32-app.kolumbus.fi (fep32-0.kolumbus.fi [193.229.0.63]) by svr1.postgresql.org (Postfix) with ESMTP id 01145D8A38 for ; Thu, 8 Sep 2005 14:38:38 -0300 (ADT) Received: from [192.168.1.101] (really [80.186.92.248]) by fep32-app.kolumbus.fi with ESMTP id <20050908173837.YDNR13434.fep32-app.kolumbus.fi@[192.168.1.101]> for ; Thu, 8 Sep 2005 20:38:37 +0300 Message-ID: <4320771E.4070400@kolumbus.fi> Date: Thu, 08 Sep 2005 20:38:38 +0300 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: pgsql-odbc@postgresql.org Subject: Re: Continuing encoding fun.... References: <87acio7nh8.fsf@meije.emic.fr> In-Reply-To: <87acio7nh8.fsf@meije.emic.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.102 required=5 tests=[AWL=0.052, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/103 X-Sequence-Number: 6001 There is one thing, that might be good for you to know: I tried wprintf("%s",char_text) and printf("%ls",wchar_text) methods. They don't work with LATIN1 under Linux. gcc does not support NON-ASCII multibyte conversions. gcc gives that responsibility for library functions. That is so even for GCC 4.0. So, at least libiconv is a good way to handle the multibyte conversions robustly under Linux. That works if and only if the libiconv library works. libiconv is LGPL licensed. Regards, Marko Ristola >However, I have no idea how this theory is far from reality, far from >the ODBC API, and far from Windows, sorry :-( I just was woken up by >the "unicode apps" word. I tried to follow the discussions here but >got lost. > >