Encoding issue with Connect-HTTP
We are posting a message body to an external system through Connect-HTTP and the body contains Latin letters like öä.
Seems to be those special letters are encoded with cp1252 which is the default encoding (for example:- Löän is encoded as L[0xf6][0xe4]n)
> Is it possible to encode them using UTF-8 without updating the default encoding at the JVM level? ( like Löän gets encoded as L[0xc3][0xb6][0xc3][0xa4]n )
if we pass the same request(contains Latin letters) through connect-soap then it gets encoded in UTF-8 as expected even though the default encoding in JVM is cp1252.
Also having plenty of SOAP & REST calls in the system, no charset issue with them as a message is being encoded in UTF-8 as expected but only issue with CONNECT-HTTP call.
I would like to understand how encoding happens when connecting to an external system despite connect-REST/connect-soap/connect-http.