Description
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 ?