Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNkgB-00022Z-Qp for pgsql-jdbc@arkaria.postgresql.org; Fri, 07 Aug 2015 16:39:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZNkgB-0001B0-6l for pgsql-jdbc@arkaria.postgresql.org; Fri, 07 Aug 2015 16:39:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZNkfg-0000d4-Qj for pgsql-jdbc@postgresql.org; Fri, 07 Aug 2015 16:39:04 +0000 Received: from gateway.pangburngroup.com ([12.230.133.165] helo=mail.liquidcore.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZNkfZ-0005TU-C2 for pgsql-jdbc@postgresql.org; Fri, 07 Aug 2015 16:39:02 +0000 Received: (from root@localhost) by mail.liquidcore.com (8.14.4/8.14.4) id t77GctO3020287 for pgsql-jdbc@postgresql.org; Fri, 7 Aug 2015 11:38:55 -0500 Received: from [192.168.0.234] (ppasalalinux.nqadmin.com [192.168.0.234]) by mail.nqadmin.com with SMTP id krzbr6bbudpbthmynadx2ps3jw; for pgsql-jdbc@postgresql.org; Fri, 07 Aug 2015 11:38:55 -0500 (CDT) (envelope-from dbadmin@nqadmin.com) Message-ID: <55C4DF1F.2060808@nqadmin.com> Date: Fri, 07 Aug 2015 11:38:55 -0500 From: Prasanth Reddy Reply-To: dbadmin@nqadmin.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi, I have recently migrated to 9.4.4 from 9.1. I did a dump and restore to migrate the database. When I try to connect using JDBC I am getting the following error, the database encoding is SQL_ASCII. Same error with postgresql-9.4-1201.jdbc4.jar & postgresql-9.1-902.jdbc4.jar. org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x92 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2270) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1998) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:570) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:420) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:305) at com.sun.rowset.JdbcRowSetImpl.execute(JdbcRowSetImpl.java:567) Command used to create the database /usr/local/pgsql/bin/createdb --encoding=SQL_ASCII --template=template0 db_server Thanks, Prasanth -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc