X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 981A48B9E7B for ; Fri, 18 Feb 2005 20:27:24 +0000 (GMT) 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 42538-02 for ; Fri, 18 Feb 2005 20:27:13 +0000 (GMT) Received: from out012.verizon.net (out012pub.verizon.net [206.46.170.137]) by svr1.postgresql.org (Postfix) with ESMTP id 7E8A98BA2EC for ; Fri, 18 Feb 2005 20:27:13 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out012.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050218202713.OCFE1467.out012.verizon.net@jfradkin>; Fri, 18 Feb 2005 14:27:13 -0600 From: "Joel Fradkin" To: "'Tom Lane'" Cc: Subject: Re: encoding using the odbc driver Date: Fri, 18 Feb 2005 15:30:56 -0500 Message-ID: <000101c515f8$c3764d30$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-reply-to: <20632.1108757892@sss.pgh.pa.us> X-Authentication-Info: Submitted using SMTP AUTH at out012.verizon.net from [66.15.127.235] at Fri, 18 Feb 2005 14:27:09 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.16 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200502/95 X-Sequence-Number: 4985 IT is coming from MSSQL server going to Redhat AS. I looked it up and see (as one other lister mentioned and I was a bit ignorant) it is SQL_LATIN_General_CP1_CI_AS. I would like for the lower function to work correctly. I will try making a database Latin 1 and see if I get it to both load = and have a functioning lower sql statement. Thanks again for all the insight, whish I understood it all better, but = I am more of a programmer then systems guy (I wear too many hats). "Joel Fradkin" writes: > It failed on French strings we had in the database (this was confusing = as it > had worked prior). After looking at it I isolated the issue to the encoding > being Unicode (the odbc driver loads the data base when the data base = is > SQL_ASCII, but not when it is Unicode; I thought I would want = Unicode). That means that the data you have is not in Unicode, but some other encoding (and no, I cannot tell what from this information). You can load it into the database only by setting client_encoding to tell what encoding the data is, so that the server can convert it to Unicode correctly. BTW, I believe that server_encoding =3D UNICODE doesn't currently work well on Windows, due to inadequate support from the operating system. So that could be contributing to your problems as well, if you're trying to run the server on Windows. If you don't know and don't care what encoding you're using, you're best off to set server_encoding =3D SQL_ASCII; that is more or less = meant to describe that state of ignorance ;-) regards, tom lane