Hi, quick response, you can use your own customized OutputStreamWriter.  You
need to extend the abstract class ServletOutputStream.  And you integrate
your customized writer with tomcat by implementing a filter.  

For more info on how to use filters, you can do a search on google.

This will only work for Tomcat 4 and up, or any other container that
implement Servlet 2.3 and up.

-Yan

-----Original Message-----
From: rlipi [mailto:[EMAIL PROTECTED] 
Sent: May 26, 2004 00:49
To: 'Tomcat Users List'
Subject: RE: Can I change Tomcat's default character encoding?


> -----Original Message-----
> From: Yansheng Lin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 25, 2004 11:57 PM
> To: 'Tomcat Users List'
> Subject: RE: Can I change Tomcat's default character encoding?
> 
> Also you may have to change
> your
> OS default locale since JVM and Java Runtime uses system default
language
> environment.
> 

Is there any way to set default encoding for created writers? For
instance - class OutputStreamWriter has constructors with or without
charset parameter. If no charset is specified, the default one will be
used.
 
And it depends on the system. It makes problems when same (web)
application should run on different platforms (Windows, Linux, etc.). 

I have not system under my control but I have Tomcat web servers under
control. 

So, question is - can I configure JAVA VM (or Tomcat itself) to create
OutputStreamWriter(s) with my default character encoding?

Thank you,
Lipi.



---------------------------------------------------------------------
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]

Reply via email to