Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUyqF-0003nM-J7 for pgsql-jdbc@arkaria.postgresql.org; Sat, 12 Oct 2013 13:02:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VUyqF-0003Do-2p for pgsql-jdbc@arkaria.postgresql.org; Sat, 12 Oct 2013 13:02:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUuPq-0000qk-Cu for pgsql-jdbc@postgresql.org; Sat, 12 Oct 2013 08:19:14 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUuPn-0007Yd-0s for pgsql-jdbc@postgresql.org; Sat, 12 Oct 2013 08:19:13 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VUuPf-0008Ok-1b for pgsql-jdbc@postgresql.org; Sat, 12 Oct 2013 01:19:07 -0700 Date: Sat, 12 Oct 2013 01:19:03 -0700 (PDT) From: saisantoshi To: pgsql-jdbc@postgresql.org Message-ID: <1381565943021-5774370.post@n5.nabble.com> Subject: Java String saving as unicode in database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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, I want to store java string as a unicode string in the database. Please let me know if this is possible? For example : String columnValue="*Sample \u0020\u0061\u0074\u0020\u0032\u0032\u0042\u0020 text*"; I want to save the above exactly (as it is which is bolded) into the database and retreive it. DB column should store as : ColumnA --------- Sample \u0020\u0061\u0074\u0020\u0032\u0032\u0042\u0020 text ( with unicode string value) When read it back from java, it should display: Sample at 22B text -- View this message in context: http://postgresql.1045698.n5.nabble.com/Java-String-saving-as-unicode-in-database-tp5774370.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