Hej,

Mam problem z kodowaniem, tzn. wszystko sie pobiera natomiast polskie litery sa zle wyswietlane.
Oto przykład jak to robie:

  1. <?php
  2. include("library/xmlrpc-2.1/lib/xmlrpc.inc");
  3. $server_path  = '/katalog/';
  4. $server_hostname = 'jakis_serwer';
  5. $sendHTTPS  = 0;
  6. $serverPort = 80;
  7.  
  8. $client = new xmlrpc_client($server_path, $server_hostname, $serverPort);
  9. $client->request_charset_encoding='UTF-8';
  10. $client->return_type = 'phpvals';
  11. $message = new xmlrpcmsg("test.getCategories", array(new xmlrpcval(57, "int")));
  12. $resp = $client->send($message);
  13. if ($resp->faultCode())
  14.  echo 'KO. Error: '.$resp->faultString(); 
  15. else 
  16. echo 'OK: got '.$resp->value();
  17.  
  18. $arr = $resp->value();
  19.  
  20. echo "<pre>";
  21. print_r($arr);
  22. echo "</pre>";
  23. ?>



a efekt tego jest taki:

  1. Array
  2. (
  3. [0] => Array
  4. (
  5. [id] => 221
  6. [name] => Urz?dzenia wielofunkcyjne z drukark? laserow?
  7. )
  8.  
  9. [1] => Array
  10. (
  11. [id] => 222
  12. [name] => Urz?dzenia wielofunkcyjne z drukark? atramentow?
  13. )
  14.  
  15. )




co moge robic nie tak, bo juz mi psycha wysiada

dodam jeszcze ze dane udostepniane sa w UTF-8