title: Problems with special characters in php soap client
body: <p>I have a problem related to <a href="https://stackoverflow.com/questions/714713/overcome-encoding-problems-with-php-soapserver-utf-8-and-non-english-character">this question</a>. I have a web service (also using php) that returns some names. When any of them contains Swedish characters (å, ä or ö) and probably others as well i get a soapfault (looks like we got no XML document). I can however see the full (correct afaik) response using $soapcalo->__getLastResponse().</p>
  
  <p>How do I handle the special characters? I have tried adding the encoding attribute (utf-8) on both client and server but without success.</p>
  
  <p>Edit: Excerpt of the soap reply:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="..."&gt;
   &lt;SOAP-ENV:Body&gt;
    &lt;ns1:callFunctionResponse&gt;
     &lt;ns1:Response&gt;
      &lt;ns1:result&gt;success&lt;/ns1:result&gt;
      &lt;ns1:content&gt;
       &lt;Contact&gt;
        &lt;userName&gt;VIB09SLA9EP&lt;/userName&gt;
        &lt;firstName&gt;Patrik&lt;/firstName&gt;
        &lt;lastName&gt;Stenstr&amp;ouml;m&lt;/lastName&gt;
       &lt;/Contact&gt;
      &lt;/ns1:content&gt;
     &lt;/ns1:Response&gt;
    &lt;/ns1:callFunctionResponse&gt;
   &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>Thanks!</p>