cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "calvin xiu (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-1856) LoggingOutInterceptor has encoding problem and solution
Date Fri, 10 Oct 2008 07:27:44 GMT
LoggingOutInterceptor has encoding problem and solution
-------------------------------------------------------

                 Key: CXF-1856
                 URL: https://issues.apache.org/jira/browse/CXF-1856
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.1
            Reporter: calvin xiu


LoggingOutInterceptor  use org.apache.cxf.io.CachedOutputStream the write the log.

in  CachedOutputStream 's  method:

 public void writeCacheTo(StringBuilder out) 

  out.append(((ByteArrayOutputStream)currentStream).toString();

use the platform default encoding the write logs.

in a chinese computor,the default encoding is GBK, but the program is UTF-8, should change
to
 
  out.append(((ByteArrayOutputStream)currentStream).toString("UTF-8")


should LoggingOutInterceptor  pass the encoding in LoggingMessage to the  CachedOutputStream
?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message