You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/10/16 15:44:44 UTC
[jira] Resolved: (CXF-1856) LoggingOutInterceptor has encoding
problem and the solution
[ https://issues.apache.org/jira/browse/CXF-1856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CXF-1856.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.1.3
Set the default encoding to be UTF-8.
> 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
> Fix For: 2.1.3
>
>
> 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.