Skip site navigation (1) Skip section navigation (2)

[Q] UTF-8 testing with Windows/ODBC 8.3.0400

From: "V S P" <toreason(at)fastmail(dot)fm>
To: pgsql-odbc(at)postgresql(dot)org
Subject: [Q] UTF-8 testing with Windows/ODBC 8.3.0400
Date: 2009-03-17 19:16:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
I am trying to confirm that my program can read UTF-8 characters and
cannot seem to figure out what's wrong.  I get question marks

I am using ODBC PSQLODBC35W.dll

My C++ program relies on OTL C++ library to do DB access, and in the
Visual Studio debugger I see only question marks '?' for the strings. 
When I convert the question marks to utf-16 (in memory) just to see if
may displaying is wrong but I get '63'. 
I am using std::string to store the bytestream from varchar column an I
think it is ok
because I do not need to 'manipulate' the content.

To eliminate my program from the consideration I downloaded and
ODBC Query Tool 0.72 Beta build 23
(from sourcerorge)

I get the same question marks on the columns with unicode text.
I know that the database has stored it correctly, because I can see
everything 'Ok' with  PGAdminIII (and things work ok with my PHP PDO

I do not have PGCLIENTENCODING=UTF8  set in the 'System', instead I just
set it per
command prompt, however I do not think it matters.

I have set ODBC driver options to have max var char length to 75000 and
the long var char to 75,000.

I cannot figure out what else I might be doing wrong.... as I said, all
I need for now it is just to test out that a C++ program via ODBC can
get the data.

thanks in advance for any help,

  V S P

-- - Same, same, but different...


pgsql-odbc by date

Next:From: Craig RingerDate: 2009-03-18 06:46:54
Subject: Re: [Q] UTF-8 testing with Windows/ODBC 8.3.0400
Previous:From: Craig RingerDate: 2009-03-17 02:34:33
Subject: Re: MS access and postgres "#Deleted" appearing after inserts

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group