#title Invalid XML with RPC::XML #author Stefan Hornburg (Racke) #topics blog; Perl; UTF-8; XML #date 2012-05-31 #pubdate 2012-05-31T09:42:21+02:00 #lang en The [[https://metacpan.org/module/RPC::XML][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 [[https://metacpan.org/module/RPC::XML#GLOBAL-VARIABLES][globally]]: {{{ $RPC::XML::ENCODING = 'utf-8'; }}}