title: return utf-8 (farsi) string from nuSOAP webservice
body: <p>i wrote a very simple webservice that you can see it's code below:</p>
  
  <p><strong>SERVER :</strong></p>
  
  <pre><code>&lt;?php
  ini_set('error_reporting', E_STRICT);
  require_once("nuSOAP/lib/nusoap.php");
  $namespace = "http://localhost/webservice/index.php";
  
  // create a new soap server
  $server = new soap_server();
  
  $server-&gt;soap_defencoding = 'utf-8';
  $server-&gt;decode_utf8 = false;
  
  // configure our WSDL
  $server-&gt;configureWSDL("HelloExample");
  
  // set our namespace
  $server-&gt;wsdl-&gt;schemaTargetNamespace = $namespace;
  
  //Register a method that has parameters and return types
  $server-&gt;register(
  // method name:
  'HelloWorld',
  // parameter list:
  array('name'=&gt;'xsd:string'),
  // return value(s):
  array('return'=&gt;'xsd:string'),
  // namespace:
  $namespace,
  // soapaction: (use default)
  false,
  // style: rpc or document
  'rpc',
  // use: encoded or literal
  'encoded',
  // description: documentation for the method
  'Simple Hello World Method');
  
  $POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
  
  // pass our posted data (or nothing) to the soap service
  $server-&gt;service($POST_DATA);
  exit();
  ?&gt;
  </code></pre>
  
  <p><strong>CLIENT :</strong></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Title&lt;/title&gt;
  &lt;meta charset="utf-8"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  require_once("nuSOAP/lib/nusoap.php");
  
      $client = new nusoap_client('http://localhost/webservice/index.php?wsdl');
  
      $client-&gt;soap_defencoding = 'UTF-8';
      $client-&gt;decode_utf8 = true;
  
      $err = $client-&gt;getError();
      if ($err) {
          echo '&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;';
          die();
      }
  
      $parameters = array('name' =&gt; "محمد");
  
      $result = $client-&gt;call('HelloWorld', $parameters);
  
      if ($client-&gt;fault) {
          echo '&lt;h2&gt;Fault&lt;/h2&gt;&lt;pre&gt;';
          print_r($result);
          echo '&lt;/pre&gt;';
          die();
      } 
      else
      {
          echo $result;
      }
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this Should return  <strong>Hello محمد</strong> But this return <strong>Hello ????</strong> </p>
  
  <p>is this unicode problem?</p>
  
  <p>any help for fixing this will appreciated</p>