On 17.08.2016 10:56, Sergey Beryozkin wrote:
Hi

The problem which affects Logging interceptors is that default HTTP 1.1 encoding is ISO-8859-1 but the actual HTTP Encoding header and this default value is very old. CXF server sets Encoding and it is not needed - if the consumer needs a default value then it does not need Encoding header to get the default charset value.

FYI, JAX-RS readers/writers assume UTF-8 if no media type charset is used (in Content-Type). Pretty sure Jersey/RestEasy do it too.

Logging interceptors apparently check Encoding header.

I wonder what JAXWS defaults too and I'm not sure CXF JAXWS needs 'Encoding' header.

At least on the JAXRS path we can def remove Encoding header.
And defaulting to UTF-8 makes sense IMHO, with so many languages around.

Sounds good

Christian

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

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

Reply via email to