Subject UNICODE and UTF-8
Author grzpil

I am writing servlets and running them on Tomcat 4.1.
All web application pages are in UTF-8 encoding, so I just put the
strings into the page as they are, and get them encoded properly no
matter what characters user writes in the browser.

I have prepared FB 1.0 database with default encoding UNICODE_FSS,
created a table with varchar fields with charset UNICODE_FSS.
I have set the lc_ctype=UNICODE_FSS connection settings for the JCA
JDBC driver.
And every time I try to put into the database some non-standard
characters I get the "Cannot transliterate character between
character sets" exception.

The example code looks like this:
String sql = "{call addProfile(?,?)}";
CallableStatement cstmt = conn.prepareCall(sql);
cstmt.setInt(1, us.iCorporateNo);
cstmt.setString(2, "\u015B");

(I hardcoded a polish Unicode character s with something above :))

Can anyone help me in finding what am I doing wrong?
I've searched through the newsgroups articles and with every email
got more and more confused :(

Thanks and best regards