Обсуждение: Unicode transformation for Mac OS X

Поиск
Список
Период
Сортировка

Unicode transformation for Mac OS X

От
Rolf Heckendorn
Дата:

My java servlet application generates HTML files out of a template file and
PostgreSQL data. The data is accessed via jdbc driver.

The problem: Unicode characters are not transformed correctly to the Mac OS
X encoding (e.g. "Umlaut" characters (accented characters)).

Is this not supported by the jdbc driver? Or do I have to specify some
driver settings?

-------------------------------------------------
rolf heckendorn, support solutions gmbh
brauereistrasse 17
ch-8610 uster, switzerland
phone +41 (0)1 941 73 73
http://www.support-solutions.ch (company)
http://www.projess.ch (project cost control tool)
-------------------------------------------------


Re: Unicode transformation for Mac OS X

От
Barry Lind
Дата:
Rolf,

This should work.  What version are you using?  And what character set
is the database you are testing against using?  (to get the character
set of the database do 'select getdatabaseencoding()')

thanks,
--Barry


Rolf Heckendorn wrote:

>
>
> My java servlet application generates HTML files out of a template file
> and PostgreSQL data. The data is accessed via jdbc driver.
>
> The problem: Unicode characters are not transformed correctly to the Mac
> OS X encoding (e.g. "Umlaut" characters (accented characters)).
>
> Is this not supported by the jdbc driver? Or do I have to specify some
> driver settings?
>
> -------------------------------------------------
> rolf heckendorn, support solutions gmbh
> brauereistrasse 17
> ch-8610 uster, switzerland
> phone +41 (0)1 941 73 73
> http://www.support-solutions.ch (company)
> http://www.projess.ch (project cost control tool)
> -------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>



Re: Unicode transformation for Mac OS X

От
Rolf Heckendorn
Дата:
Hi Barry

At 10:36 18.01.02 -0800, Barry Lind wrote:
>Rolf,
>
>This should work.  What version are you using?  And what character set is
>the database you are testing against using?  (to get the character set of
>the database do 'select getdatabaseencoding()')
>
>thanks,
>--Barry

Thank you for your tip. Actually I have solved my problem just now. I
startet my servlet engine (Tomcat) with "java -Dfile.encoding=8859_1" and
everything works fine. The problem was not with the jdbc driver but with
the character encoding of the "Reader" and "Writer" classes of java.

Thanks & Regards
Rolf