From: gggeek Date: Sun, 12 Jul 2015 00:05:27 +0000 (+0100) Subject: 3rd time is a charm? X-Git-Tag: 4.0.0-alpha^2~12 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=cfa2ba8c5cb4c3cd219beb5ff3297099d7bd8fda;hp=390edf48f54b0f0645cf7882146a9e117a2099c4 3rd time is a charm? --- diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index ca2e631..d81c0d0 100644 --- a/tests/3LocalhostTest.php +++ b/tests/3LocalhostTest.php @@ -204,10 +204,15 @@ class LocalhostTest extends PHPUnit_Framework_TestCase '; + PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding = 'UTF-8'; + // we have to set the encoding declaration either in the http header or xml prolog, as mb_detect_encoding + // (used on the server side) will fail recognizing these 2 $v = $this->send(mb_convert_encoding(str_replace('_ENC_', 'UCS-4', $str), 'UCS-4', 'UTF-8')); $this->assertEquals($sendString, $v->scalarval()); $v = $this->send(mb_convert_encoding(str_replace('_ENC_', 'UTF-16', $str), 'UTF-16', 'UTF-8')); $this->assertEquals($sendString, $v->scalarval()); + PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding = 'ISO-8859-1'; + } /*public function testLatin1Method()