Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VVOto-00007z-9j for pgsql-jdbc@arkaria.postgresql.org; Sun, 13 Oct 2013 16:52:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VVOtn-0004Qi-My for pgsql-jdbc@arkaria.postgresql.org; Sun, 13 Oct 2013 16:52:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VVOtm-0004Qb-Md for pgsql-jdbc@postgresql.org; Sun, 13 Oct 2013 16:52:10 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VVOti-0002Lw-Uz for pgsql-jdbc@postgresql.org; Sun, 13 Oct 2013 16:52:09 +0000 Received: from [192.168.157.132] (unknown [65.19.243.151]) by outbound.vnet-inc.com (Postfix) with ESMTP id 7738B7418 for ; Sun, 13 Oct 2013 10:51:40 -0600 (MDT) Message-ID: <525ACE58.704@ttc-cmc.net> Date: Sun, 13 Oct 2013 10:46:16 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: PostgreSQL JDBC Subject: Re: Java String saving as unicode in database References: <1381565943021-5774370.post@n5.nabble.com> <52597C74.6070104@ttc-cmc.net> <1381622110422-5774410.post@n5.nabble.com> In-Reply-To: <1381622110422-5774410.post@n5.nabble.com> Content-Type: text/plain; charset=us-ascii; format=flowed 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 As John said. Download and use the complete code from the example given before. Fill in in main() database, username, & password. Compile: javac Test_UTC.java Run: java Test_UTC Look at the cmd line output text and the JPanel text. This will tell the story. Test_UTC code. http://dandymadeproductions.com/temp/Test_UTC.java danap. saisantoshi wrote: > I tried this but the problem is its not saving in the DB as what I wanted to > store.. > *Sample\u0020\u0061\u0074\u0020\u0032\u0032\u0042\u0020 text > > Its converting the above and storing it in the DB. When I look at the > database, it is something that I can't understand looking at it. May be its > an editor problem. How do I view the exact string stored from my windows cmd > prompt connecting to postgres sql. > > Thanks, > Sai > > > > -- > View this message in context: http://postgresql.1045698.n5.nabble.com/Java-String-saving-as-unicode-in-database-tp5774370p5774410.html > Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc