> Now I got the right information from the DB in Hebrew and french.
> Still can't save value in Hebrew from client (browser) to server and
> in french if I save 'été' in a column varchar(3) I got a range over
> exception.
>
> What happen here ! something else to config ?

This is a Tomcat question...

When processing forms set the encoding of the form element using the following attribute (in addition to all that you are doing):

enctype= "text/plain;charset=UTF-8"

eg <form action="blah" ... enctype= "text/plain;charset=UTF-8">

Also add a hidden field with special/accented characters in all your forms. Query the parameter value (of the hidden field) in your servlet/filter/jsp to see what you actually got. It could be that the browser didn't respect your encoding, and you don't get back what you put there in the first place!

Hope that helps.

John Sidney-Woollett

Elie Nacache wrote:

Hi Guy,


Are you sure your client side display and fonts are set correctly?

Yes, I can display Hebrew font.


Can you look at the ASCII codes you get back from Postgres to make sure they are not the correct Hebrew characters.

I use pgAdmin3 on W2K to insert row in Hebrew and can see the right character.
My /etc/sysconfig/i18n file:
LANG="en_US.UTF-8"
SUPPORTED="fr_FR.UTF-8:fr_FR:fr:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"


Now I tried this configuration: * DB in UNICODE, 'set client_encoding to UNICODE'
* Apache 2.0 + mod_jk2: don't see any encoding
* Tomcat 5: javaEncoding to UTF8 (default value)
* In each JSP: <%@ page contentType="text/html;charset=utf-8" language="java"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Now I got the right information from the DB in Hebrew and french.
Still can't save value in Hebrew from client (browser) to server and in french if I save 'été' in a column varchar(3) I got a range over exception.
What happen here ! something else to config ?
Elie


                
---------------------------------
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Reply via email to