Fix server and client: support LATIN-1 requests/responses where the charset declarati...
[plcapi.git] / lib / xmlrpc.inc
index 1572279..9106bd6 100644 (file)
@@ -201,6 +201,7 @@ function php_xmlrpc_decode_xml($xmlVal, $options=array())
 
 function guess_encoding($httpHeader='', $xmlChunk='', $encodingPrefs=null)
 {
+    return PhpXmlRpc\Helper\XMLParser::guessEncoding($httpHeader, $xmlChunk, $encodingPrefs);
 }
 
 function is_valid_charset($encoding, $validList)