1--TEST-- 2Bug #71501 (xmlrpc_encode_request ignores encoding option) 3--SKIPIF-- 4<?php 5if (!extension_loaded("xmlrpc")) print "skip"; 6?> 7--FILE-- 8<?php 9$params = 'Lê Trung Hiếu'; 10echo xmlrpc_encode_request('foo', $params, ['encoding' => 'UTF-8', 'escaping' => 'markup']); 11?> 12--EXPECTF-- 13<?xml version="1.0" encoding="UTF-8"?> 14<methodCall> 15<methodName>foo</methodName> 16<params> 17 <param> 18 <value> 19 <string>Lê Trung Hiếu</string> 20 </value> 21 </param> 22</params> 23</methodCall> 24