[ https://issues.apache.org/jira/browse/CXF-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CXF-1856: --------------------------------- Assignee: Willem Jiang > LoggingOutInterceptor has encoding problem and the solution > ------------------------------------------------------------ > > Key: CXF-1856 > URL: https://issues.apache.org/jira/browse/CXF-1856 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.1.2 > Reporter: calvin xiu > Assignee: Willem Jiang > > LoggingOutInterceptor use org.apache.cxf.io.CachedOutputStream to write the > log. > in CachedOutputStream public void writeCacheTo(StringBuilder out) > out.append(((ByteArrayOutputStream)currentStream).toString(); > It use the platform default encoding to write the log!!!! > in a chinese server, the default encoding is GBK, but the program is UTF-8, > the clause should change to > > out.append(((ByteArrayOutputStream)currentStream).toString("UTF-8") > should LoggingOutInterceptor pass LoggingMessage's encoding message to > CachedOutputStream ? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.