You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by b....@vector.at on 2004/04/05 14:49:02 UTC

UTF-8 encoding

Hi!

I have a web-application which on the serverside needs UTF-8 encoding. I 
tried to install and run apache/tomcat on a Windows-XP environment, and 
the server says, the encoding is not UTF-8. same applicationwith the same 
apache/tomcat version runs correctly on a windows 2000 environment. Is 
this a XP specific problem and is there any possibility to force tomcat to 
send data in UTF-8 encoding.



Best regards
 bab








 

Re: providing .png images - CGIServlet

Posted by Alex <al...@squigly.net>.
No one has come across problems similar to this?  My brain is starting to
hurt.

On Mon, 5 Apr 2004, Alex wrote:

> Date: Mon, 5 Apr 2004 10:39:50 -0400 (EDT)
> From: Alex <al...@squigly.net>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: providing .png images - CGIServlet
>
>
> [system info]
> 2 Windows 2000 IIS 5.0 sitting under alteon load balancers providing sticky sessions
> 2 Tomcat 5.0.19 application servers connected to the above noted iis servers using the older jk2 isapi dll.
> -- tomcat application servers are using the "pooled" replication
>
> The entire application that is running is working perfectly.  No problems
> with exception to providing .png images from a freely available cgi on the
> net called '14all.cgi' --
>
> I've set the debug level to 99 for the
> org.apache.catalina.servlets.CGIServlet
>
> I watch the output in localhost_log---.txt and see the .png being created
> and everything happening proper.  headers are set, etc.  in the browser,
> nothing is being displayed.
>
> in the non clustered application server setup, this all works properly.
> anyone have any ideas?


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


providing .png images - CGIServlet

Posted by Alex <al...@squigly.net>.
[system info]
2 Windows 2000 IIS 5.0 sitting under alteon load balancers providing sticky sessions
2 Tomcat 5.0.19 application servers connected to the above noted iis servers using the older jk2 isapi dll.
-- tomcat application servers are using the "pooled" replication

The entire application that is running is working perfectly.  No problems
with exception to providing .png images from a freely available cgi on the
net called '14all.cgi' --

I've set the debug level to 99 for the
org.apache.catalina.servlets.CGIServlet

I watch the output in localhost_log---.txt and see the .png being created
and everything happening proper.  headers are set, etc.  in the browser,
nothing is being displayed.

in the non clustered application server setup, this all works properly.
anyone have any ideas?


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


Re: UTF-8 encoding

Posted by Harry Mantheakis <ha...@mantheakis.freeserve.co.uk>.

> implement a EncodingFilter class


Where's the interface?


> Hi, you can specify the utf-8 encoding with a filter.  All you need to do is
> implement a EncodingFilter class, and then in your deployment descriptor add
> the <filter> element as follows:
> 
> <filter>
>   <filter-name>EncodingFilter</filter-name>
>   <display-name>EncodingFilter</display-name>
>   <description>UTF-8 encoding</description>
>   <filter-class>org.mysite.EncodingFilter</filter-class>
>   <init-param>
>           <param-name>targetEncoding</param-name>
>           <param-value>utf-8</param-value>
>   </init-param>
> </filter>
> 
> Hope this helps:)
> 
> -Yan
> 
> -----Original Message-----
> From: b.somer@vector.at [mailto:b.somer@vector.at]
> Sent: Monday, April 05, 2004 6:49 AM
> To: Tomcat Users List
> Subject: UTF-8 encoding
> 
> 
> Hi!
> 
> I have a web-application which on the serverside needs UTF-8 encoding. I
> tried to install and run apache/tomcat on a Windows-XP environment, and
> the server says, the encoding is not UTF-8. same applicationwith the same
> apache/tomcat version runs correctly on a windows 2000 environment. Is
> this a XP specific problem and is there any possibility to force tomcat to
> send data in UTF-8 encoding.
> 
> 
> 
> Best regards
> bab


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


RE: UTF-8 encoding

Posted by Yansheng Lin <ya...@silvacom.com>.
Hi, you can specify the utf-8 encoding with a filter.  All you need to do is
implement a EncodingFilter class, and then in your deployment descriptor add the
<filter> element as 
follows:

  <filter>
    <filter-name>EncodingFilter</filter-name>
    <display-name>EncodingFilter</display-name>
    <description>UTF-8 encoding</description>
    <filter-class>org.mysite.EncodingFilter</filter-class>
    <init-param>
            <param-name>targetEncoding</param-name>
            <param-value>utf-8</param-value>
    </init-param>
  </filter>

Hope this helps:)

-Yan

-----Original Message-----
From: b.somer@vector.at [mailto:b.somer@vector.at] 
Sent: Monday, April 05, 2004 6:49 AM
To: Tomcat Users List
Subject: UTF-8 encoding


Hi!

I have a web-application which on the serverside needs UTF-8 encoding. I 
tried to install and run apache/tomcat on a Windows-XP environment, and 
the server says, the encoding is not UTF-8. same applicationwith the same 
apache/tomcat version runs correctly on a windows 2000 environment. Is 
this a XP specific problem and is there any possibility to force tomcat to 
send data in UTF-8 encoding.



Best regards
 bab








 


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