Java String saving as unicode in database - Mailing list pgsql-jdbc

From saisantoshi
Subject Java String saving as unicode in database
Date
Msg-id 1381565943021-5774370.post@n5.nabble.com
Whole thread Raw
Responses Re: Java String saving as unicode in database  (dmp <danap@ttc-cmc.net>)
List pgsql-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.


pgsql-jdbc by date:

Previous
From: saisantoshi
Date:
Subject: Saving spanish text into DB (as unicode)
Next
From: dmp
Date:
Subject: Re: Java String saving as unicode in database