Question : 0xefbfbd of encoding "UTF8" has no equivalent in "WIN1252"

I'm getting the error below on this statement.  I'm trying to open a connection to a PostgreSQL database.  I have a ODBC data source defined, and I have installed the PostgreSQL ODBC driver.

Dim Reader As OdbcDataReader = catCMD.ExecuteReader()

ERROR [22P05] ERROR: character 0xefbfbd of encoding "UTF8" has no equivalent in "WIN1252";
Error while executing the query


Alternatively, can I use an SQL connection object.  If so, what would I specify for Data Source?

Answer : 0xefbfbd of encoding "UTF8" has no equivalent in "WIN1252"

I change the driver from ANSI to UNICODE and the problem is resolved.  
Random Solutions  
 
programming4us programming4us