Skip site navigation (1) Skip section navigation (2)

Problem With Euro character

From: TNO <tnodev(at)free(dot)fr>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Problem With Euro character
Date: 2008-09-05 16:06:26
Message-ID: 48C15902.2080906@free.fr (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hello

I'm working on a french web application (Spring+Ibatis+Postgre).
My PostgreSql version : 8.1
My db encoding is UTF-8.
My JDBc Driver version is 8.1-405-jdbc3

There is no problem to display the Euro (€) character in HTML pages, but 
in the PDF this caracter disepear !!!
Strange...

I've done a little test, this is the recuperation of a String "*€ € € € 
€ Euro € Euro € € € €" *:

log.info(c.getObservation());
log.info(new String (c.getObservation().getBytes("UTF-8")));
log.info(new String (c.getObservation().getBytes("ISO-8859-1")));

INFO  17:49:10.468 ? ? ? ? ? Euro ? Euro ? ? ? ?  (TestEuro.java:14)
INFO  17:49:10.468 € € € € € Euro € Euro € € € €  
(TestEuro.java:15)
INFO  17:49:10.468 € € € € € Euro € Euro € € € €  (TestEuro.java:16)

Very strange, it seems that my observation have an encoding ISO-8859-1 
in my db UTF-8...

if you have any idea...



---
Antivirus avast! : message Sortant sain.
Base de donnees virale (VPS) : 080905-0, 05/09/2008
Analyse le : 05/09/2008 18:06:27
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com


Responses

pgsql-jdbc by date

Next:From: Daniel MigowskiDate: 2008-09-05 16:10:03
Subject: Re: Problem With Euro character
Previous:From: Bob BruynoogheDate: 2008-09-05 12:14:51
Subject: scale parameter to setObject method

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group