Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VO9H6-0003YJ-H3 for pgsql-jdbc@arkaria.postgresql.org; Mon, 23 Sep 2013 16:46:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VO9H5-00021r-W0 for pgsql-jdbc@arkaria.postgresql.org; Mon, 23 Sep 2013 16:46:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VNbfN-0007wP-T4 for pgsql-jdbc@postgresql.org; Sun, 22 Sep 2013 04:53:05 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VNbfL-00078v-Jn for pgsql-jdbc@postgresql.org; Sun, 22 Sep 2013 04:53:05 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VNbfK-0008Hl-2R for pgsql-jdbc@postgresql.org; Sat, 21 Sep 2013 21:53:02 -0700 Date: Sat, 21 Sep 2013 21:53:02 -0700 (PDT) From: saisantoshi To: pgsql-jdbc@postgresql.org Message-ID: <1379825582068-5771897.post@n5.nabble.com> Subject: =?UTF-8?Q?Reading_=C2=A3_character_from_DB_is_displaying_=C5=93_character?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.8 (/) 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 Everyone, I am trying to read to read a foreign character from database (Get *=C2=A3*= 100) is giving some other character. I am using plain Java- JDBC connection. Just wondering if there is anything that needs to be done apart from the below? Below is the pseudo code: connection =3D DriverManager.getConnection( =09=09=09=09 "jdbc:postgresql://127.0.0.1:5432/demodb?useUnicode=3Dyes&characterEncoding= =3Dutf-8", "test", "test"); String sql =3D "select * from test_data"; ResultSet rs =3D stmt.executeQuery(sql); while(rs.next()){ System.out.println(rs.getString(1)) // Returns Get *=C5=93*100 Expected : Get *=C2=A3*100) } DB is UTF-8 Postgres jar version : postgresql-9.0-801.jdbc4.jar Appreciate if you could let me know if I am missing anything here? Thanks, Sai. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Readi= ng-character-from-DB-is-displaying-character-tp5771897.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc