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 757E2D9D86 for ; Fri, 4 Nov 2005 23:23:40 -0400 (AST) 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 18039-07 for ; Sat, 5 Nov 2005 03:23:36 +0000 (GMT) X-Greylist: delayed 00:06:39.683498 by SQLgrey- Received: from web53905.mail.yahoo.com (web53905.mail.yahoo.com [206.190.36.215]) by svr1.postgresql.org (Postfix) with SMTP id 67EC6D9DFD for ; Fri, 4 Nov 2005 23:23:38 -0400 (AST) Received: (qmail 10265 invoked by uid 60001); 5 Nov 2005 03:17:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MmWdwT490e9Fe9TCV4FUCfStPOdDizOy5auH7C7USnY/TFksaeuggpSM8NuPk1bvkyeQpmtMGLzKRHHLW79iME4aLHr8NsW+/DFQ0aWGQMSZnUYm5piKUg3gpMgcEz+1GS/qw0JwbHqATab+DK5u5afBasmUtFA+KVqy8r+JhXc= ; Message-ID: <20051105031702.10263.qmail@web53905.mail.yahoo.com> Received: from [68.234.148.174] by web53905.mail.yahoo.com via HTTP; Fri, 04 Nov 2005 19:17:02 PST Date: Fri, 4 Nov 2005 19:17:02 -0800 (PST) From: Christopher Gillin Subject: Encoding Issues To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200511/62 X-Sequence-Number: 6299 Hello, My current setup is a PostgreSQL server (7.4.5) running on RH 9, a database with UNICODE character set and trying to connect using Windows ODBC Manager with Postgres driver (8.01.00.05). I'm using the UNICODE version of the driver to retrieve some UTF8 characters form the database. The problem is, in some stage of the SQLGetData it's trying to do a conversion and breaking the character. In both of the following cases I SET_CLIENT ENCODING TO 'UNICODE'. This is from mylog_****.log [3552][SQLGetData][3552]PGAPI_GetData: enter, stmt=4140704 [3552] num_rows = 1 [3552] value = 'ä' [3552]**** PGAPI_GetData: icol = 0, fCType = 1, field_type = 1043, value = 'ä' [3552]copy_and_convert: field_type = 1043, fctype = 1, value = 'ä', cbValueMax=1000 [3552]DEFAULT: len = 1, ptr = '�?' [3552] SQL_C_CHAR, default: len = 1, cbValueMax = 1000, rgbValueBindRow = '�' Using the ANSI version of the driver I don't encounter this problem [2788][SQLGetData][2788]PGAPI_GetData: enter, stmt=4140528 [2788] num_rows = 1 [2788] value = 'ä' [2788]**** PGAPI_GetData: icol = 0, fCType = 1, field_type = 1043, value = 'ä' [2788]copy_and_convert: field_type = 1043, fctype = 1, value = 'ä', cbValueMax=1000 [2788]DEFAULT: len = 2, ptr = 'ä' [2788] SQL_C_CHAR, default: len = 2, cbValueMax = 1000, rgbValueBindRow = 'ä' Does anyone know why this wouldn't work with the UNICODE version of the PostgreSQL driver? __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs