From: dmp <danap@ttc-cmc.net>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Java String saving as unicode in database
Date: Sun, 13 Oct 2013 10:46:16 -0600
Message-ID: <525ACE58.704@ttc-cmc.net> (raw)
In-Reply-To: <1381622110422-5774410.post@n5.nabble.com>
References: <1381565943021-5774370.post@n5.nabble.com>
<52597C74.6070104@ttc-cmc.net>
<1381622110422-5774410.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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....
> Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
>
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: danap@ttc-cmc.net
Subject: Re: Java String saving as unicode in database
In-Reply-To: <525ACE58.704@ttc-cmc.net>
References: <1381565943021-5774370.post@n5.nabble.com> <52597C74.6070104@ttc-cmc.net> <1381622110422-5774410.post@n5.nabble.com> <525ACE58.704@ttc-cmc.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox