Subject | Re: [Firebird-Java] charset with connection pool |
---|---|
Author | Roman Rokytskyy |
Post date | 2008-10-19T10:28:52Z |
> since I use the connection pool (before I made the connection myself inConnection defaults to NONE, but you're right, you have to specify the
> the servlet) I have the problem that accents and umlauts are not shown
> correctly anymore, mostly because the connection defaults to UTF-8, but
> my DB is ISO-8859-1.
encoding in such case.
> I tried adding "charset"charSet, not charset, it is case sensitive
> and "encoding" parameters to my context.xml butShould work. Did you specify the correct encoding name:
> it does not seem to work.
http://jaybirdwiki.firebirdsql.org/jaybird/doku.php?id=config:char_encodings
Also check whether you also set the correct encoding to your output stream.
> Where can the connection charset be specified when using a connectionIf you use the DBCP, you can pass it via JDBC URL:
> pool ?
jdbc:firebirdsql:<host>/<port>:/path/to/db.fdb?encoding=UTF8
Roman