The RPC::XML Perl module uses us-ascii as XML encoding by default. If you delivering UTF-8 content from a database or other sources, RPC::XML produces invalid XML with the default setting.

The XML encoding used by RPC::XML can only be changed globally:

$RPC::XML::ENCODING = 'utf-8';