From cfa2ba8c5cb4c3cd219beb5ff3297099d7bd8fda Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 12 Jul 2015 01:05:27 +0100 Subject: [PATCH] 3rd time is a charm? --- tests/3LocalhostTest.php | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.43.0