Hi all,
with Rest Data Sources in APEX I get the data as JSON from the provider. For about one week the provider has activated the compression for all API calls. Now I have to ensure that compression support is enabled in my calls and make sure the “Accept-Encoding” header is included in the request and specifies “gzip”, for example, “Accept-Encoding: gzip”.
After the compression activation I have the problems with the encoding of the german umlauts. For exmaple for “Baden-Württemberg” I get now “Baden-Württemberg”.
After the activating the compression I can get the data with curl only with “--compression” key. With postman I have no problems.
In order to activate the compression for ORDS (Version: 21.1.3.r1531102) on Tomcat 9.0.46 I have edited the server.xml file of Tomcat and added “compression”, “CompressionMinSize” and “compressionMimeType” to the connector:
<Connector port="8080"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
compression="on"
compressionMinSize="128"
compressibleMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml" />
After Tomcat restart I have tested the results of the Rest Data Sources in APEX and the unlauts are still not decoded.
Dear friends, what am I doing wrong?
Thank you!