Hello All,
This bug can be reproduced when the browser's accepted
language is not represented in the ISO-8859-1
character set.
The fix sets the requested locale at the server's
response, and uses a Writer in order to convert to the
proper character set.
 
Cheers,
Dimitris Dinodimos



__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
Index: StaticInterceptor.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/request/Attic/StaticInterceptor.java,v
retrieving revision 1.7.2.6
diff -u -r1.7.2.6 StaticInterceptor.java
--- StaticInterceptor.java      2000/12/12 20:33:46     1.7.2.6
+++ StaticInterceptor.java      2001/01/29 20:11:10
@@ -485,6 +485,7 @@
        
        if (! inInclude) {
            res.setContentType("text/html");
+           res.setLocale(locale);
            buf.append("<html>\r\n");
            buf.append("<head>\r\n");
            buf.append("<title>")
@@ -634,7 +635,7 @@
        
        if (! inInclude)  buf.append("</body></html>\r\n");
 
-       if( res.isUsingWriter() ) {
+       if( !res.isUsingStream() ) {
            PrintWriter out=res.getWriter();
            out.print(buf);
        } else {

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

Reply via email to