I am using trac 1.0.1 with the latest XmlRpcPlugin. When adding a ticket using python like this, non-ASCII characters (ä
in this example) get inserted correctly:
import xmlrpclib
server = xmlrpclib.ServerProxy('https://user:pwd@localhost/trac/login/xmlrpc')
server.ticket.create("Täst", "Täst")
Now I want to add add a ticket using phpxmlrpc like this:
$client = new xmlrpc_client("https://localhost/trac/xmlrpc");
$client->setCredentials("usr", "pwd", CURLAUTH_BASIC);
$xmlrpc_msg = new xmlrpcmsg('ticket.create', array(new xmlrpcval("Täst"), new xmlrpcval("Täst"));
$xmlrpc_resp = $client->send($xmlrpc_msg);
I now get this error: not well-formed (invalid token): line 6, column 57
and the ticket is not being inserted.
When setting $client->request_charset_encoding
to either UTF-8
or ISO-8859-1
, both times the ticket is being inserted but all non-ascii characters are malformed.
How can I get this working?