Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar


Yair Zohar wrote:


Guy Katz wrote:


google it.
there's a lot.

-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 11:08 AM
To: Tomcat Users List
Subject: Re: Problems with utf-8 encoding


Guy Katz wrote:

 

put an encoding filter in front of your servlet/jsp's that sets a 
UTF-8 encoding for incoming requests and outgoing responses. its 
your safest bet for tomcat 4 as far as i remember.


-Original Message-----
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 9:43 AM
To: Tomcat Users List
Subject: Re: Problems with utf-8 encoding


Anto Paul wrote:



  


On 9/19/05, Yair Zohar <[EMAIL PROTECTED]> wrote:


 



Hello,
I'm using Tomcat 4.1.18
I'm trying to read hebrew data in utf-8 encoding from the 
database. As a

check I entered a utf-8 encoded 'alef' letter to the database field.
(I see it in the database as one letter 'alef'). The jsp page that
displays the data, prints two chars instead of one. I checked the 
values

of these chars and
they are 215 114, which are the utf-8 combination to create the 
letter

'alef'  (so I was told).

jps code:

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" info="Tables Handler" 
import="tablesHandler.*" %>


class="tablesHandler.TableViewer" />



<% request.setCharacterEncoding("UTF-8");%>




 


 

   
  


Move <% request.setCharacterEncoding("UTF-8");%> to before 
jsp:useBean tag.




 



Thanks for replying,
It didn't fix the problem, I still see the same two chars.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  


Guy, can you direct me to practical documentation on implementing 
such a filter ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 


Hi again,
I implemented the SetCharacterEncodingFilter from the tomcat 4 examples,
In order to check the control I have on the character encoding of the 
request and

response I changed the doFilter method to be:

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
   throws IOException, ServletException {

   request.setCharacterEncoding("UTF-8");
   System.out.println("Request: "+request.getCharacterEncoding());
 response.setContentType("text/html; charset=UTF-8");
   System.out.println("Response: "+response.getCharacterEncoding());
 
   // Pass control on to the next filter

   chain.doFilter(request, response);

   }

request.getCharacterEncoding() returns null. It also returns null if I 
put the request.setCharacterEncoding("UTF-8");

as a remark. (my page contains utf-8 encoding directives).
The response however is set to UTF-8.
Can this explain my problem using UTF-8 encoding ?
Does anybody know how to solve it ?



The filter does the work, it solved the problem.
Thanks all who helped,
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar

Guy Katz wrote:


google it.
there's a lot.

-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 11:08 AM
To: Tomcat Users List
Subject: Re: Problems with utf-8 encoding


Guy Katz wrote:

 


put an encoding filter in front of your servlet/jsp's that sets a UTF-8 
encoding for incoming requests and outgoing responses. its your safest bet for 
tomcat 4 as far as i remember.

-Original Message-----
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 9:43 AM
To: Tomcat Users List
Subject: Re: Problems with utf-8 encoding


Anto Paul wrote:



   


On 9/19/05, Yair Zohar <[EMAIL PROTECTED]> wrote:


  

 


Hello,
I'm using Tomcat 4.1.18
I'm trying to read hebrew data in utf-8 encoding from the database. As a
check I entered a utf-8 encoded 'alef' letter to the database field.
(I see it in the database as one letter 'alef'). The jsp page that
displays the data, prints two chars instead of one. I checked the values
of these chars and
they are 215 114, which are the utf-8 combination to create the letter
'alef'  (so I was told).

jps code:

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" info="Tables Handler" import="tablesHandler.*" %>




<% request.setCharacterEncoding("UTF-8");%>




 


 



   


Move <% request.setCharacterEncoding("UTF-8");%> to before jsp:useBean tag.



  

 


Thanks for replying,
It didn't fix the problem, I still see the same two chars.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





   

Guy, can you direct me to practical documentation on implementing such a 
filter ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 


Hi again,
I implemented the SetCharacterEncodingFilter from the tomcat 4 examples,
In order to check the control I have on the character encoding of the 
request and

response I changed the doFilter method to be:

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
   throws IOException, ServletException {

   request.setCharacterEncoding("UTF-8");
   System.out.println("Request: "+request.getCharacterEncoding());
  
   response.setContentType("text/html; charset=UTF-8");

   System.out.println("Response: "+response.getCharacterEncoding());
  


   // Pass control on to the next filter
   chain.doFilter(request, response);

   }

request.getCharacterEncoding() returns null. It also returns null if I 
put the request.setCharacterEncoding("UTF-8");

as a remark. (my page contains utf-8 encoding directives).
The response however is set to UTF-8.
Can this explain my problem using UTF-8 encoding ?
Does anybody know how to solve it ?



Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar

Guy Katz wrote:


put an encoding filter in front of your servlet/jsp's that sets a UTF-8 
encoding for incoming requests and outgoing responses. its your safest bet for 
tomcat 4 as far as i remember.

-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 9:43 AM
To: Tomcat Users List
Subject: Re: Problems with utf-8 encoding


Anto Paul wrote:

 


On 9/19/05, Yair Zohar <[EMAIL PROTECTED]> wrote:


   


Hello,
I'm using Tomcat 4.1.18
I'm trying to read hebrew data in utf-8 encoding from the database. As a
check I entered a utf-8 encoded 'alef' letter to the database field.
(I see it in the database as one letter 'alef'). The jsp page that
displays the data, prints two chars instead of one. I checked the values
of these chars and
they are 215 114, which are the utf-8 combination to create the letter
'alef'  (so I was told).

jps code:

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" info="Tables Handler" import="tablesHandler.*" %>




<% request.setCharacterEncoding("UTF-8");%>




  


  

 


Move <% request.setCharacterEncoding("UTF-8");%> to before jsp:useBean tag.



   


Thanks for replying,
It didn't fix the problem, I still see the same two chars.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 

Guy, can you direct me to practical documentation on implementing such a 
filter ?


Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Yair Zohar


Jilles van Gurp wrote:



Why aren't you using setContentType("text/html, "utf-8") on the response?


As I use jsp, I don't know how can I control the response that way.



What content-type is the server actually returning (use the live http 
headers extension for firefox or something similar to find out).


I couldn't find if this extension is installed, or how to install it.
In the page info :

Type: text/html
Encoding: UTF-8

Meta:
Content-Type text/html; charset=UTF-8



What database and jdbc driver are you using? What method are you using 
to store the string in the database?


I use mysql 4.1.14 + connector 3.1.10
the url for the driver is: 
"jdbc:mysql://"+Utils.getServerName()+":3306/"+Utils.getDatabaseName()+"?characterEncoding=UTF-8&characterSetResults=UTF-8"


the tables definitions:
ENGINE=MyISAM DEFAULT CHARSET=utf8



I've had utf-8 trouble with several databases. For example mysql 4.1 + 
the latest jdbc driver + setCharacterStream had some strange effects. 
First of all you need to tell mysql to use utf-8 (it defaults to 
something else) and even if you do that setCharacterStream has some 
issues that go away if you use setString. Oracle on the other hand 
cannot insert strings larger than 4KB with setString so you need to 
use setCharacterStream. Incidently, the mysql driver implementation of 
setCharacterString is implemented using setString!


I use Statement class executeUpdate(String str) method to update and 
executeQuery(String str) to query the database.




Regards,

Jilles

Yair Zohar wrote:



sorry for the double mail,
I forgot to add my server.xml encoding definitions:

  port="8080" URIEncoding="UTF-8" 
useBodyEncodingForURI="true"

  minProcessors="5" maxProcessors="75"
  enableLookups="true" redirectPort="8443"
  acceptCount="100" debug="0" connectionTimeout="2"
  useURIValidationHack="false" 
disableUploadTimeout="true"  />


I tried it with and without the useBodyEncodingForURI="true"directive.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with utf-8 encoding

2005-09-18 Thread Yair Zohar

Anto Paul wrote:


On 9/19/05, Yair Zohar <[EMAIL PROTECTED]> wrote:
 


Hello,
I'm using Tomcat 4.1.18
I'm trying to read hebrew data in utf-8 encoding from the database. As a
check I entered a utf-8 encoded 'alef' letter to the database field.
(I see it in the database as one letter 'alef'). The jsp page that
displays the data, prints two chars instead of one. I checked the values
of these chars and
they are 215 114, which are the utf-8 combination to create the letter
'alef'  (so I was told).

jps code:

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" info="Tables Handler" import="tablesHandler.*" %>




<% request.setCharacterEncoding("UTF-8");%>




   


   



Move <% request.setCharacterEncoding("UTF-8");%> to before jsp:useBean tag.

 


Thanks for replying,
It didn't fix the problem, I still see the same two chars.
Yair.



Problems with utf-8 encoding - continue

2005-09-18 Thread Yair Zohar


sorry for the double mail,
I forgot to add my server.xml encoding definitions:



I tried it with and without the useBodyEncodingForURI="true"directive.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with utf-8 encoding

2005-09-18 Thread Yair Zohar


Hello,
I'm using Tomcat 4.1.18
I'm trying to read hebrew data in utf-8 encoding from the database. As a 
check I entered a utf-8 encoded 'alef' letter to the database field.
(I see it in the database as one letter 'alef'). The jsp page that 
displays the data, prints two chars instead of one. I checked the values 
of these chars and
they are 215 114, which are the utf-8 combination to create the letter 
'alef'  (so I was told).


jps code:

<%@ page language="java" contentType="text/html;charset=UTF-8" 
pageEncoding="UTF-8" info="Tables Handler" import="tablesHandler.*" %>





<% request.setCharacterEncoding("UTF-8");%>




   



I tried it in all the combinations of the 'UTF-8' directives.
Does some have an idea how can I tell tomcat to display it as one char 
(the letter alef) and not two separated gibrish chars?

Or maybe it's another issue ?
Thanks ahead,
Yair.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request too long

2005-07-18 Thread Yair Zohar


Mike Noel wrote:



At 12:28 PM 7/18/2005, Yair wrote:


 Server Error

   The following error occurred:

   [code=HTTP_REQUEST_TOO_LONG] The HTTP request is too long.
   Contact your system administrator.



Just a wild guess here but it sounds like you are using the GET method 
for your form?  There is a limit to the length of the URL for a GET.  
Try changing your form method to POST and see if that helps.


_M_




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Solved.
Thanks a lot.
Yair.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Request too long

2005-07-18 Thread Yair Zohar

Hello,
I'm building a web application on tomcat 4.1.18 which is connected to 
apache 2 web server by ajp13 connector.

I get the response :


 Server Error


   The following error occurred:

   [code=HTTP_REQUEST_TOO_LONG] The HTTP request is too long.
   Contact your system administrator.

when I press the submit button of a form with an html textarea with 
large amount of text.

When I reduce the amount of text in the textarea it works fine.
I assume it's a tomcat response because the apache usually gives an 
error number.


Does anyone know if there is a place, in the conf files, to rise the 
maximal length of the request accepted by tomcat?

Or, does anyone know a solution for this problem?

Thanks ahead,
Yair.




Installing new web application

2003-11-03 Thread Yair Zohar
Hello,
I've been trying to install a new web application on tomcat 4.1.18
It's a very simple application (only one jsp that displays something)
I couldn't do it with the 'Tomcat Web Application Manager' although I 
fllowed the documentaion exactly.
I succeded installing it by the command: 
'http://hostname:8080/manager/install?path=/test&war=file:/usr/local/tomcat/webapps/test'
(I put the application in dir 'test' inside dir 'webapps' before giving 
the command).
Now I have the problem that the application doesn't persist after tomcat 
restart.

Can someone tell me what are the actions that should be taken to
install such an application ?
I copied ROOT/WEB_INF/web.xml file to test/WEB_INF/web.xml, should I add 
something to this file ?
Is there documentation out of the jakarta site that can help me with this?

Thanks,
Yair


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Hebrew Problem

2003-09-17 Thread Yair Zohar
I have got to a solution:

It might be a private case but it may help others.

I'm reading the html with A BufferedReader that is running over a
AsciiFileReader which is using FileInputStream.
The idea is to read the file byte by byte casting it to char in a char 
array not before moving from ascii to unicode.

while (not end of html)
int readInt = input.read();
//moving from ascii to unicode
// be aware ascii hebrew can occur in different sets (224 - / 128 - )
if (readInt>=224 & readInt<=250) readInt = readInt -224 +1488

//casting

charArray[i] = (char)readInt;

}

it seems charset=windows-1255 displays hebrew for codes from 1488

I understood it after running this loop in a jsp page:

<% for (int i=0; i<65535; i++) { %>
<%=i %>   <%=(char)i %>
<%}%>
Thanks to all who directed me to the solution.





Bodycombe, Andrew wrote:
I suggest setting the file.encoding system property.

export CATALINA_OPTS="-Dfile.encoding=utf-8"
Then restart tomcat.
I once had a similar problem with German umlaute characters and this seemed
to fix it.
Andy

-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2003 10:33
To: Tomcat Users List
Subject: Re: A Hebrew Problem

After some investigation I'll try to refrase and improve my problem 
description:

My Goal: including a hebrew html inside a jsp page.

The Problem: hebrew is viewed by browser as question marks (no matter 
charset).

Some details from my investigation:

When I request the hebrew html directly (not included in a jsp but as 
the request target itself) I see it right (charset=windows-1255).

When writing hebrew (same charset) in the same jsp page (that has the 
include action) I see it right (but the included html is still ).

To be sure it's not the 'include' action () fault, I replaced it by a 
function that returns the included page as a string and ensures it's 
read in ascii:

<%= pageExecuter.readHtml() %>

when this didn't help, I wanted to be sure my function is returning the 
jsp page an ascii string, I wrote this in the jsp page:

//moving the html string to a char array.
<%char [] c =  pageExecuter.readHtml().toCharArray();
   for (int i=0; i

//displaying 'character code' 'character'
 <%= (int)c[i] %>;  <%= c[i] %>
<% } %>

in that way I can see in the browser each character's code and the 
character itself.
I've got ascii codes, but near the hebrew ascii codes there were '?'

(I'm aware of the different hebrew ascii sets exists I tried both 
224-250 , 128 - 154 )

My conclusion:
Tomcat doesn't send the browser a response with ascii code but with some 
other code.

Any Idea ?

Thanks for your efforts.



Anton Tagunov wrote:

Hello Yair!

YZ> I have this hebrew problem:
YZ> I'm trying to include a html in a jsp page:
YZ> 
YZ> When it comes to a hebrew html the browser displays question marks 
YZ> instead of hebrew (no matter what charset do I choose in the browser).

YZ> The same html is viewed nicely when I get it directly as a file

1)

Do I get you right that you have

 web-app-root/some/a.jsp
 web-app-root/other/b.html
and when you do

 http://www.myserver.some-domain/my-web-app/other/b.html

you get something real, not question marks?

2)

I vagually recall some talks about this being a JSP spec limitation
on the list, but I did not delve into the topic then.
I also recall that the it was mentioned then that the new
spec-compliant but unconvinient behavior has been introduced
recently.
Anyone, any tips?

(nagoya.apache.org eyebrowse search is not too much responsive when
searching tomcat-dev, and tomcat-user is not indexed at all :-(
YZ> System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2

YZ> It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3 
YZ> mysql-connector-java-3.0.7 j2sdk1.4.0_03

Anton

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Hebrew Problem

2003-09-17 Thread Yair Zohar
After some investigation I'll try to refrase and improve my problem 
description:

My Goal: including a hebrew html inside a jsp page.

The Problem: hebrew is viewed by browser as question marks (no matter 
charset).

Some details from my investigation:

When I request the hebrew html directly (not included in a jsp but as 
the request target itself) I see it right (charset=windows-1255).

When writing hebrew (same charset) in the same jsp page (that has the 
include action) I see it right (but the included html is still ).

To be sure it's not the 'include' action () fault, I replaced it by a 
function that returns the included page as a string and ensures it's 
read in ascii:

<%= pageExecuter.readHtml() %>

when this didn't help, I wanted to be sure my function is returning the 
jsp page an ascii string, I wrote this in the jsp page:

//moving the html string to a char array.
<%char [] c =  pageExecuter.readHtml().toCharArray();
  for (int i=0; i

//displaying 'character code' 'character'
<%= (int)c[i] %>;  <%= c[i] %>
<% } %>

in that way I can see in the browser each character's code and the 
character itself.
I've got ascii codes, but near the hebrew ascii codes there were '?'

(I'm aware of the different hebrew ascii sets exists I tried both 
224-250 , 128 - 154 )

My conclusion:
Tomcat doesn't send the browser a response with ascii code but with some 
other code.

Any Idea ?

Thanks for your efforts.



Anton Tagunov wrote:
Hello Yair!

YZ> I have this hebrew problem:
YZ> I'm trying to include a html in a jsp page:
YZ> 
YZ> When it comes to a hebrew html the browser displays question marks 
YZ> instead of hebrew (no matter what charset do I choose in the browser).

YZ> The same html is viewed nicely when I get it directly as a file

1)

Do I get you right that you have

  web-app-root/some/a.jsp
  web-app-root/other/b.html
and when you do

  http://www.myserver.some-domain/my-web-app/other/b.html

you get something real, not question marks?

2)

I vagually recall some talks about this being a JSP spec limitation
on the list, but I did not delve into the topic then.
I also recall that the it was mentioned then that the new
spec-compliant but unconvinient behavior has been introduced
recently.
Anyone, any tips?

(nagoya.apache.org eyebrowse search is not too much responsive when
searching tomcat-dev, and tomcat-user is not indexed at all :-(
YZ> System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44, j2sdk1.4.2
YZ> It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3 
YZ> mysql-connector-java-3.0.7 j2sdk1.4.0_03

Anton

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Hebrew Problem

2003-09-15 Thread Yair Zohar
I wish to continue working with windows-1255 charset, unless it's 
impossible to use this charset with tomcat. is it possible to configure 
tomcat to work well with this charset ?
Yair.

Seth Newton wrote:
I use this with success:

<%@ page contentType="text/html;charset=utf-8" %>

Why not use UTF-8 instead of some specific charset?... I use the same pages
for 8 different languages.  I couldn't imagine the headaches I'd have if I
specified a charset for each language.
That ramble being said, just try putting this in your jsp page, save your
file as UTF-8 (This can be done in notepad), upload it to the web server and
try it again.
- Original Message - 
From: "Yair Zohar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 15, 2003 11:18 AM
Subject: Re: A Hebrew Problem



I have this header in the jsp page:



did you mean this header ?

Shapira, Yoav wrote:

Howdy,
Did you set the content-type header for the response in tomcat?
Yoav Shapira
Millennium ChemInformatics



-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: 
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2


It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Hebrew Problem

2003-09-15 Thread Yair Zohar
I have this header in the jsp page:



did you mean this header ?

Shapira, Yoav wrote:
Howdy,
Did you set the content-type header for the response in tomcat?
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: 
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2

It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


A Hebrew Problem

2003-09-15 Thread Yair Zohar
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: 
When it comes to a hebrew html the browser displays question marks 
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when 
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44, j2sdk1.4.2
It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3 
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]