pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Charset issue when storing data
2+ messages / 2 participants
[nested] [flat]

* Charset issue when storing data
@ 2006-03-21 12:48 Aymeric Levaux <alevaux@loop.be>
  2006-03-21 13:35 ` Re: Charset issue when storing data Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Aymeric Levaux @ 2006-03-21 12:48 UTC (permalink / raw)
  To: pgsql-jdbc

Hello,

I have a strange behavior using last version of JDBC driver (version 
does not matter). When I store data in the DB using JDBC (actually 
hibernate), some special char are corrupted. But if I directly store 
data in the DB using pgadmin, it is ok and well displayed in the webapp 
(it means that the JDBC driver retrieves it correctly). Additionally if 
I deploy my webapp on my  dev machine  and  configure it to connect to 
the  production database, there is no more problem, data is well stored.

I can't figure what's wrong on my production server as it deals well 
with unicode char ...

Do you have any idea ?

Thanks

- Aymeric




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Charset issue when storing data
  2006-03-21 12:48 Charset issue when storing data Aymeric Levaux <alevaux@loop.be>
@ 2006-03-21 13:35 ` Dave Cramer <pg@fastcrypt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Cramer @ 2006-03-21 13:35 UTC (permalink / raw)
  To: alevaux@loop.be; +Cc: pgsql-jdbc

Aymeric,

What is the encoding on the server ?

Dave
On 21-Mar-06, at 7:48 AM, Aymeric Levaux wrote:

> Hello,
>
> I have a strange behavior using last version of JDBC driver  
> (version does not matter). When I store data in the DB using JDBC  
> (actually hibernate), some special char are corrupted. But if I  
> directly store data in the DB using pgadmin, it is ok and well  
> displayed in the webapp (it means that the JDBC driver retrieves it  
> correctly). Additionally if I deploy my webapp on my  dev machine   
> and  configure it to connect to the  production database, there is  
> no more problem, data is well stored.
>
> I can't figure what's wrong on my production server as it deals  
> well with unicode char ...
>
> Do you have any idea ?
>
> Thanks
>
> - Aymeric
>
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-03-21 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 12:48 Charset issue when storing data Aymeric Levaux <alevaux@loop.be>
2006-03-21 13:35 ` Dave Cramer <pg@fastcrypt.com>

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