From: saisantoshi <mr@starsborn.com>
To: pgsql-jdbc@postgresql.org
Subject: Java String saving as unicode in database
Date: Sat, 12 Oct 2013 01:19:03 -0700 (PDT)
Message-ID: <1381565943021-5774370.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mr@starsborn.com
Subject: Re: Java String saving as unicode in database
In-Reply-To: <1381565943021-5774370.post@n5.nabble.com>
References: <1381565943021-5774370.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox