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 435DFD6DA1 for ; Thu, 25 Aug 2005 15:12:59 -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 57345-02 for ; Thu, 25 Aug 2005 18:12:56 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 285F3D6D8D for ; Thu, 25 Aug 2005 15:12:55 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id A627731F50; Thu, 25 Aug 2005 20:25:27 +0200 (MET DST) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Trouble with encoding again Date: Thu, 25 Aug 2005 21:12:07 +0300 Organization: Hub.Org Networking Services Lines: 25 Message-ID: References: <8398dc6d0508240658290fc36e@mail.gmail.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.196 required=5 tests=[AWL=0.011, PRIORITY_NO_NAME=1.185] X-Spam-Level: * X-Archive-Number: 200508/214 X-Sequence-Number: 5853 ""Alejandro D. Burne"" wrote in message news:8398dc6d0508240658290fc36e@mail.gmail.com... > Hi, I'll be trying to solve this workaround between postgres odbc > 8.01.00.03 and VisualFoxPro(VFP) with spanish chars and unicode > encoding. > VFP''ve 2 ways to send info to rdbms: explicit or by reference: > A little example (I think it's easy to understand) > 1) conn=SQLCONNECT('odbc_entry','user','pwd') > 2) SQLEXECUTE(conn,"INSERT INTO t1 VALUES ('ñ');)") > 3) a='ñ' > 4) SQLEXECUTE(conn,"INSERT INTO t1 VALUES (?a);)") > > 1) Stablish connection > 2) Works fine (explicit) > 3) Var 'a' takes value ´ñ´ > 4) This doesn't work (by reference) Use 3) a= STRCONV('ñ',9) Andrus.