X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 16DB69DC80C for ; Thu, 26 Jan 2006 15:03:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80069-08 for ; Thu, 26 Jan 2006 15:03:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 8917B9DC809 for ; Thu, 26 Jan 2006 15:03:14 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k0QJ36ax011958; Thu, 26 Jan 2006 20:03:06 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k0QJ36lU011957; Thu, 26 Jan 2006 20:03:06 +0100 Date: Thu, 26 Jan 2006 20:03:06 +0100 From: Ludek Finstrle To: Jaime Casanova Cc: pgsql-odbc@postgresql.org Subject: Re: is there a default client encoding? Message-ID: <20060126190306.GA11919@soptik.pzkagis.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.086 required=5 tests=[AWL=0.086] X-Spam-Score: 0.086 X-Spam-Level: X-Archive-Number: 200601/258 X-Sequence-Number: 7073 > i wonder if the odbc driver is sending a default client_encoding to > the server. if so, what client_encoding? how can i determine it? if > not, how i know what client encoding my platform uses? psqlODBC tries to do it automatically for you. If you want see what client_encoding is used enable mylog output and there is called set client_encoding in the relative begin of mylog. > applications got weird results ;). Well the point is in VB i can't > send arbitrary commands to the server so how i set it, is the odbc > doing it? can i change the encoding the odbc is sending? The psqlODBC has strange behaviour. It set automatic client_encoding _after_ user defined connection settings. So you could change the client encoding only from application. You could call set client_encoding SQL statement. I hope I have answered you Luf