title: Apache Nifi Encode XML to ISO-8859-1
body: <p>I need to encode the contents of a XML file from UTF-8 to ISO-8859-1, but for the life of me I cannot get it encoded..</p>
  <p>I tried using convertCharacterSet but there is no change.</p>
  <p>For the Processor I have the following:
  Input Character Set: UTF-8
  Output Character Set: ISO-8859-1</p>
  <p>The input is:</p>
  <pre><code>&lt;TstH&gt;
  
      &lt;Header&gt;
  
          &lt;ProductCode&gt;LOCAL&lt;/ProductCode&gt;
  
          &lt;EffectiveDate&gt;2022-07-18&lt;/EffectiveDate&gt;
  
          &lt;AgencyCode&gt;USER1&lt;/AgencyCode&gt;
  
          &lt;AgencyPassword&gt;pwd1&lt;/AgencyPassword&gt;
  
          &lt;Trace&gt;0&lt;/Trace&gt;
  
      &lt;/Header&gt;
  &lt;/TstH&gt;
  </code></pre>
  <p>And my expected output should be:</p>
  <pre><code>&amp;lt;TstH&amp;gt;
  
      &amp;lt;Header&amp;gt;
  
          &amp;lt;ProductCode&amp;gt;LOCAL&amp;lt;/ProductCode&amp;gt;
  
          &amp;lt;EffectiveDate&amp;gt;2022-07-18&amp;lt;/EffectiveDate&amp;gt;
  
          &amp;lt;AgencyCode&amp;gt;USER1&amp;lt;/AgencyCode&amp;gt;
  
          &amp;lt;AgencyPassword&amp;gt;pwd1&amp;lt;/AgencyPassword&amp;gt;
  
          &amp;lt;Trace&amp;gt;0&amp;lt;/Trace&amp;gt;
  
      &amp;lt;/Header&amp;gt;
  &amp;lt;/TstH&amp;gt;
  </code></pre>