I think it will assume the system default charset as default.

So you could try to change that. See https://javarevisited.blogspot.de/2012/01/get-set-default-character-encoding.html

Chistian


On 17.08.2016 10:19, Vjacheslav V. Borisov wrote:
2016-08-17 11:19 GMT+04:00 Christian Schneider <[email protected]>:

You should also take a look at the new Logging support in:
https://github.com/apache/cxf/tree/master/rt/features/logging

http://www.liquid-reality.de/display/liquid/2015/06/08/Enter
prise+ready+request+logging+with+CXF+3.1.0+and+elastic+search

The new logging feature should also make it easier to customize the way to
output the message.


Thanks Christian
Tried, but with same result
don't know why, but this string  String encoding =
(String)message.get(Message.ENCODING)
returns ISO-8859-1 when client sends request without charset
e.g. when cleint sends request with Content-Type:
application/json;charset=UTF-8
it is logged correctly by both loggers, new and old
and when there is no charset in request, it assumes ISO-8859-1 by default



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to