Re: client encoding mismatch
От | prashanth k p |
---|---|
Тема | Re: client encoding mismatch |
Дата | |
Msg-id | 69d075ef0905110457w1690d2ane3788e77874be47a@mail.gmail.com обсуждение исходный текст |
Ответ на | client encoding mismatch (prashanth k p <konkodi210@gmail.com>) |
Список | pgsql-odbc |
Hi All,
I could resolve the issue by updating "Driver=/usr/lib/psqlodbc.so" to "Driver=/usr/local/lib/psqlodbcw.so"
Thanks. I hope this would help other people also
--
regards
Prashantha K P
regards
Prashantha K P
On Mon, May 11, 2009 at 3:32 PM, prashanth k p <konkodi210@gmail.com> wrote:
Hi All,I am running Postgre server in Windows platform. I have installed psqlodbc-08.03.0400 odbc driver and libiodbc-3.52.6 driver for connecting Postgre database form Red Hat Linux platform.To test the application I have written a small Java program. When I execute the program I get below mentioned errorSQLException: SQLState(22003) vendor code(214)java.sql.SQLException: [unixODBC]client encoding mismatchat sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)Java Program:-----------------------------------------------------DriverManager.setLogWriter(new PrintWriter(System.out));Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Connection con = DriverManager.getConnection ( "jdbc:odbc:postgres", "postgres", "demopswd");odbc.ini-----------------------------------------------[ODBC Data Sources]postgres = PostgreSQL Test[postgres]Driver=/usr/lib/psqlodbc.soDescription=PostgreSQL DSNDSN=postgresServername=192.43.53.64Username=postgresDatabase=postgresReadOnly=NoServertype=postgresPort=5432FetchBufferSize=99ReadOnly=noTrace=1TraceFile=/home/oralsh/odbc.traceDebug=1DebugFile=/home/oralsh/odbc.debugCommLog=1[Default]Driver = /usr/lib/libodbc.soodbcinst.ini-----------------------------------[PostgreSQL]Description = ODBC for PostgreSQLDriver = /usr/lib/libodbcpsql.soSetup = /usr/lib/libodbcpsqlS.soFileUsage = 1I even tried to change encoding by running "alter user postgres SET client_encoding to UNICODE;" but still I get the same errorI dont know what is the mistake I have done. I request you please help me to resolve the issue--
regards
Prashantha K P
В списке pgsql-odbc по дате отправления: