I just faced the following problem:
If I make the following XML call with an array of names (@names) it works fine except the names contain special chars.
Working example: Miller, Tommen, Braun
Not working: Miller, Sülden, Braun (I get a http error / server error)
.. RPC::XML::struct->new( email => $in_email, language => $in_language, name=>\@names ));
The names should be submitted by XML RPC in UTF8 encoding. The users enter the name in a html form with the header "<meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>"
Is it necessary to convert the input to UTF8 or is this already done by the html form with the respective header?
I've tried to convert the names before putting them into an array with the following to avoid the mentioned error. But no success: What exactly does this?
utf8::encode($in_name) if utf8::is_utf8($in_name);