outgoing character encoding REST service response

1
Hi forum, our app provides a REST service and needs to send different character encodings in the response based on a client configuration. Does anyone have experience with changing the response body character encoding, let’s say from utf-8 to iso-8859-15?   Thanks a lot Thomas
asked
1 answers
0

Hi forum,

so far we tackled it by performing an XSL transformation including an encoding directive to change the output encoding e.g. like this:

<xsl:stylesheet version="1.0" 

  <xsl:output ... method="xml" encoding="iso-8859-1" ... />

  …

</xsl:stylesheet> 

and a change of the response content-type header after placing our transformed content into the response body.

 

BR

answered