Java String saving as unicode in database

Поиск
Список
Период
Сортировка
От saisantoshi
Тема Java String saving as unicode in database
Дата
Msg-id 1381565943021-5774370.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: Java String saving as unicode in database
Список 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 по дате отправления:

Предыдущее
От: saisantoshi
Дата:
Сообщение: Saving spanish text into DB (as unicode)
Следующее
От: dmp
Дата:
Сообщение: Re: Java String saving as unicode in database