Re: Java String saving as unicode in database

From: dmp <danap(at)ttc-cmc(dot)net>
To: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Java String saving as unicode in database
Date: 2013-10-13 16:46:16
Message-ID: 525ACE58.704@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message dmp 2013-10-13 20:06:22 Re: Java String saving as unicode in database
Previous Message John R Pierce 2013-10-13 00:38:21 Re: Java String saving as unicode in database