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.

Reply via email to