Java String saving as unicode in database

From: saisantoshi <mr(at)starsborn(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Java String saving as unicode in database
Date: 2013-10-12 08:19:03
Message-ID: 1381565943021-5774370.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message saisantoshi 2013-10-12 08:23:24 Saving spanish text into DB (as unicode)
Previous Message Martin Petras 2013-10-11 11:38:42 Re: Array of UUID is not supported