tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Masood Ahmed <masoo...@yahoo.com>
Subject Re: Setting UTF-8 Encoding
Date Fri, 31 Jan 2003 12:13:47 GMT
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 <quereshi@etilize.com> 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>
> <head><title>Test 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:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message