Subject Re: [firebird-support] Cannot transliterate character between character sets
Author David Johnson
On Tue, 2005-03-29 at 12:45 +0000, Thiago Costa wrote:
> ing tomcat to publicate my servlets. When i use windows
> the page showed is correctly, but when i put the servlet under windows
> the especial characters appers with "?". I resolved the problem
> putting a lc_ctype parameter in the string connection

With Java and UTF-8, I have found that I need to set the character set
in Firebird to none.

HTTP is mostly displayed in ISO-8859-1. Your servlet should convert
strings to ISO-8859-1 before transmission.

String s = new String (initialValueStr, "ISO-8859-1");

Alternatively, your JVM will need to have the correct font support
installed for UTF-8 characters outside of the 0x00 to 0x7F range. See
your JVM documentation. Typical linux installations have the fonts
(arabic, greek, chinese, etc) pre-installed. Windows installations
don't always have that.

You can't guarantee that all browsers have UTF-8, so unless this is an
internal app I would be cautious about web based apps using UTF-8
natively.