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

From dmp
Subject Re: Java String saving as unicode in database
Date
Msg-id 525ACE58.704@ttc-cmc.net
Whole thread Raw
In response to Re: Java String saving as unicode in database  (saisantoshi <mr@starsborn.com>)
Responses Re: Java String saving as unicode in database  (dmp <danap@ttc-cmc.net>)
List pgsql-jdbc
As John said. Download and use the complete code from the
example given before. Fill in in main() database, username, &
password.

Compile:
javac Test_UTC.java

Run:
java Test_UTC

Look at the cmd line output text and the JPanel text. This will
tell the story.

Test_UTC code.
http://dandymadeproductions.com/temp/Test_UTC.java

danap.

saisantoshi wrote:
> I tried this but the problem is its not saving in the DB as what I wanted to
> store..
> *Sample\u0020\u0061\u0074\u0020\u0032\u0032\u0042\u0020 text
>
> Its converting the above and storing it in the DB. When I look at the
> database, it is something that I can't understand looking at it. May be its
> an editor problem. How do I view the exact string stored from my windows cmd
> prompt connecting to postgres sql.
>
> Thanks,
> Sai
>
>
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/Java-String-saving-as-unicode-in-database-tp5774370p5774410.html
> Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
>


pgsql-jdbc by date:

Previous
From: John R Pierce
Date:
Subject: Re: Java String saving as unicode in database
Next
From: dmp
Date:
Subject: Re: Java String saving as unicode in database