Re: Setting UTF-8 Encoding

2003-01-31 Thread Masood Ahmed
Have you tried setting the locale directly on the
request object? See if that helps.

What version of tomcat are you using?

thanks,
-Masood

--- Affan Qureshi [EMAIL PROTECTED] wrote:
 I forgot to paste my code which is there at the
 bottom now.
 
  I am having trouble setting the encoding to UTF-8
 and hence my web pages
 are
  unable to render characters like the Trademark or
 Copyright symbols. In
  Tomcat's source at various places teh character
 encoding is hard-coded to
 be
  ISO-8859-1. I have tried to use the filter in the
 examples to set the
  encoding type but that did not help and I kept
 seeing questionamarks for
  those characters. I have also tried to modify the
 source and build again
 but
  that doesn't work either (I know I must be doing
 something wrong here.)
 
  Somehow tomcat doesn't allow me to change the
 character encoding to UTF-8.
  The same JSPs are looking fine on Weblogic and
 Resin without any
  configuration/modification to the server settings.
 
  Any ideas how can I fix this ugly problem in my
 app. The app is unusable
  without this.
 
  Thanks a lot.
 
  Affan
 
  Here is my code for the Test JSP:
 %@page contentType=text/html; charset=UTF-8%
 html
 headtitleTest JSP/title/head
 body
 % out.println('\u00A9'); %
 % System.out.println(This © is test);%
 BR
 % out.println(This ° is test); %
 BR
 % out.println(This © is test); %
 BR
 % out.println(This \u00A9 is test); %  %= ©%
 BR
 % out.println(This \u00B0 is test); %
 BR
 % out.println(This \u00AE is test); %
 BR
 % out.println(This \u0099 is test); %
 BR
 % out.println(This \u00F6 is test); %
 % out.flush(); %
 /body
 /html
 
 

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


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Tomcat 4.0.3 vs tomcat 4.1.18 and WebStart

2003-01-30 Thread Masood Ahmed
Hi-

I have recently upgraded to tomcat 4.1.18 (from 4.0.3)
and notice that when I serve up a dynamic JNLP file
(JSP with page contentType set to
application/x-java-jnlp-file), the JavaWebstart
application is not automatically picked up for
processing the file. I get a dialog File Download
(yes my browser is on Win2000, and tomcat 4.1.18 on
BSD 4.3),  with text Some files can harm your
computer...etc..and Would you like to open the file or
save it to your computer?. If I select Open Java
Webstart takes over and downloads the jars/resources
from that point on. 

I am using the same server.xml I was using for 4.0.3
but with mods to use the new CoyoteConnectors etc. I
am also setting the mime type in web.xml for files
with jnlp extension to be x-java-jnlp

I can't seem to figure out why there is this
difference in behavior when I try to use JavaWebstart
to launch an application when using 4.1.18 vs 4.0.3?

All answers are appreciated :)

thanks,
-Masood

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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