Re: Hebrew support -- please help !
От | Tatsuo Ishii |
---|---|
Тема | Re: Hebrew support -- please help ! |
Дата | |
Msg-id | 20040831.100621.74737500.t-ishii@sra.co.jp обсуждение исходный текст |
Ответ на | Hebrew support -- please help ! (Elie Nacache <elie_nacache@yahoo.com>) |
Список | 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 по дате отправления: