pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gagnon <dgagnon74@hotmail.com>
To: pgsql-jdbc@postgresql.org
Subject: JDBC and Latin1 Database problem
Date: Tue, 04 Jan 2005 21:38:13 -0500
Message-ID: <BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl> (raw)

Hi all,

  I'm using postgresql 7.4 and pg74.215.jdbc3.jar as jdbc driver.  I got 
this error deploying my application on Linux/Tomcat5  This error is not 
throwned in my development environment Win2000/Tomcat4.1.

Any Idea?

To inform the jdbc driver that it must converts caracters I put the 
following URL in my server.xml (notice the encoding=latin1).  Without this 
variable caracter é takes 2 spaces in the latin db.  So éééééé will takes 12 
spaces.  This make my varchar(10) to small.

jdbc:postgresql://127.0.0.1:5432/webCatalog?encoding=latin1

Is that the way to do it .. because I search a lot an only found a mail 
talking about this flag...

Thanks for your help!!

/David


  Error executing: INSERT INTO AK  (AKNUM,AKDESC_PRI, 
AKDESC_SEC,AKFRAIS,AKTAUX,AKTYPE) VALUES 
('CHEQ','CH?QUE','CHEQUE',22,null,1)
org.postgresql.util.PSQLException: ERROR: could not convert UTF-8 character 
0x00ef to ISO8859-1

ERROR [main] (Dao.java:267)  2005-01-04 20:40:10,044 : Error processing the 
sql file: resources/auxilary/payment/insert_test.sql
org.postgresql.util.PSQLException: ERROR: could not convert UTF-8 character 
0x00ef to ISO8859-1

        at com.ibatis.db.util.ScriptRunner.runScript(ScriptRunner.java:211)
        at com.davecorp.webos.dao.Dao.executeSqlFile(Dao.java:264)
        at com.davecorp.webos.dao.Dao.notificationEvent(Dao.java:234)





view thread (5+ messages)  latest in thread

Message-ID: <BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl>
Permalink:  ../BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl/
Also on:    postgresql.org/message-id/BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl

 · 

reply

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: dgagnon74@hotmail.com
  Subject: Re: JDBC and Latin1 Database problem
  In-Reply-To: <BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl>
  References: <BAY17-F4793E7DA8B91F1D406AE3A6920@phx.gbl>

* 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