Re: Hebrew support -- please help ! - Mailing list pgsql-general

From Tatsuo Ishii
Subject Re: Hebrew support -- please help !
Date
Msg-id 20040831.100621.74737500.t-ishii@sra.co.jp
Whole thread Raw
In response to Hebrew support -- please help !  (Elie Nacache <elie_nacache@yahoo.com>)
List pgsql-general
> Hi all,
>
> I develop an application (JAVA/JSP) on RedHat PostgreSQL 7.4.3 with PostgreSQL 7.4.2 JDBC3 with SSL (build 213).
>
> This application needs to serve pages in LATIN1 and Hebrew.
> For that I create 2 Databases, one DB in UNICODE encoding with client encoding LATIN1 when in the JSP the charset
encodingis iso-8859-1 and it's working fine from client to server and server to client. 
>
> so I decide to do the same thing with Hebrew -- DB in UNICODE with client encoding ISO-8859-8 when in the JSP the
charsetencoding is iso-8859-8, then I got strange characters. 
>
> I also tried to create DB in UNICODE encoding with client encoding UNICODE when in the JSP the charset encoding is
UNICODE,but same problem I got strange characters. 
>
> Does someone have a solution or a way to resolve this problem.

If I understand correctly, JDBC driver issues "set client_encoding to
iso-8859-8" in your case. You should check it first. If it does the
right thing, then you might want to the conversion maps. They are located:

src/backend/utils/mb/Unicode/utf8_to_iso8859_8.map    // UNICODE(UTF-8) -> ISO-8859-8
src/backend/utils/mb/Unicode/iso8859_8_to_utf8.map    // ISO-8859-8 -> UNICODE(UTF-8)

If you find anything wrong, please let me know.
--
Tatsuo Ishii

pgsql-general by date:

Previous
From: David Wheeler
Date:
Subject: Re: UTF-8 and LIKE vs =
Next
From: Guy Naor
Date:
Subject: Re: Hebrew support -- please help !