title: Perl SOAP::Lite XML Parser encoding value
body: <p>I am calling web service with SOAP::Lite. It gives following error:</p>
  
  <pre><code>not well-formed (invalid token) at line 7, column 16, byte 281 at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser.pm line 187
  </code></pre>
  
  <p>At line 7 of output, there is Turkish character which I think caused this problem. I can see output from terminal. It is starting with following line : </p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  </code></pre>
  
  <p>There is no encoding parameter. How can I set output encoding value to UTF-8?
  I tried following when I am calling web service but it did not work:</p>
  
  <pre><code>my $soap = SOAP::Lite
      -&gt; on_action( sub { join '/', @_ } )
      -&gt; readable(1)
      -&gt; uri('xxx')
      -&gt; proxy("http://xxx")
      -&gt; ns("http://schemas.xmlsoap.org/soap/envelope/","soapenv")
      -&gt; ns("xxx","yyy");
  $soap-&gt;serializer()-&gt;encodingStyle("utf-8");
  </code></pre>