Need a way to configure encoding - Mailing list pgsql-odbc

From Abhishek Kumar
Subject Need a way to configure encoding
Date
Msg-id CAAyULEC5v=ApkJPjRAzW2jShahrHztTvEu1_YWpe79ATC7WwVA@mail.gmail.com
Whole thread Raw
Responses Re: Need a way to configure encoding
List pgsql-odbc
Hi,

I am working on a linux ODBC C++ application and using psqlodbc driver. I need help on the below few questions.

1. Is there a way in which we can make the psqlodbc code work according to the client encoding?
For example, if my application encoding is UTF-8, i would want the types and strings returned to my application in UTF-8. I think by default, it is returning UTF-16 strings.

2. The default behaviour of the driver is when we have a VARCHAR column in a table, it returns SQL_WVARCHAR as the type. Is there a possibility where we can configure something (maybe at connection string), such that it returns SQL_VARCHAR for VARCHAR column and not SQL_WVARCHAR ?

Please help me in answering the above questions.

Regards,
Abhishek Kumar

pgsql-odbc by date:

Previous
From: Hunaid Sohail
Date:
Subject: Re: Help needed to enable "MyLog" in a Linux application
Next
From: Igor Korot
Date:
Subject: KeepAlive