outgoing character encoding REST service response

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
1 answers

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" ... />



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