X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FPhpXmlRpc.php;h=0f39fafee810f6f9dcfdef3c1ddae9aeead9b04a;hb=1ca4b1e930fd6d697d8c6947fca4a02ce5725fa9;hp=7de98c072c89958711082ec526d2b3d9f31fc997;hpb=5be54109b83d6a77f3a2804e7520db9662c53002;p=plcapi.git diff --git a/src/PhpXmlRpc.php b/src/PhpXmlRpc.php index 7de98c0..0f39faf 100644 --- a/src/PhpXmlRpc.php +++ b/src/PhpXmlRpc.php @@ -60,13 +60,20 @@ class PhpXmlRpc // The charset encoding used by the server for received requests and // by the client for received responses when received charset cannot be determined - // or is not supported + // and mbstring extension is not enabled public static $xmlrpc_defencoding = "UTF-8"; + // The list of encodings used by the server for requests and by the client for responses + // to detect the charset of the received payload when + // - the charset cannot be determined by looking at http headers, xml declaration or BOM + // - mbstring extension is enabled + public static $xmlrpc_detectencodings = array(); + // The encoding used internally by PHP. // String values received as xml will be converted to this, and php strings will be converted to xml - // as if having been coded with this - public static $xmlrpc_internalencoding = "ISO-8859-1"; // TODO: maybe this would be better as UTF-8, or atleast configurable? + // as if having been coded with this. + // Valid also when defining names of xmlrpc methods + public static $xmlrpc_internalencoding = "UTF-8"; public static $xmlrpcName = "XML-RPC for PHP"; public static $xmlrpcVersion = "4.0.0.beta"; @@ -97,7 +104,7 @@ class PhpXmlRpc // NB: all the variables exported into the global namespace below here do NOT guarantee 100% // compatibility, as they are NOT reimported back during calls to importGlobals() - + $reflection = new \ReflectionClass('PhpXmlRpc\Value'); foreach ($reflection->getStaticProperties() as $name => $value) { $GLOBALS[$name] = $value; @@ -136,4 +143,5 @@ class PhpXmlRpc } } } + }