pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <eetasoft@online.ee>
To: pgsql-odbc@postgresql.org
Subject: Re: Trouble with encoding again
Date: Thu, 25 Aug 2005 21:12:07 +0300
Message-ID: <del1n5$1pp4$1@news.hub.org> (raw)
References: <8398dc6d0508240658290fc36e@mail.gmail.com>


""Alejandro D. Burne"" <alejandro.dburne@gmail.com> 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. 





view thread (3+ messages)  latest in thread

Message-ID: <del1n5$1pp4$1@news.hub.org>
Permalink:  ../del1n5$1pp4$1@news.hub.org/
Also on:    postgresql.org/message-id/del1n5$1pp4$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: eetasoft@online.ee
  Subject: Re: Trouble with encoding again
  In-Reply-To: <del1n5$1pp4$1@news.hub.org>
  References: <8398dc6d0508240658290fc36e@mail.gmail.com> <del1n5$1pp4$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox