Subject: | Double encoding. |
Hi. This is my first bugreport/feature request.
First of all I want to say that MediaWiki::Api is great work.
I use Mediawiki::Api to parse wikitext, and recieve HTML code like this:
#use wikiapi to store data.
my $html = $mw->api( { action => 'parse', text => $data } );
$data is wikitext recived from mediawiki using the MediaWiki module.
The text is already encoded in utf8, but the MediaWiki::Api still tries
to encode this text into utf8 ( _encode_hashref_utf8() - line 534 ). The
result is double-encoding.
My wishlist is an option for "skip encoding", or some checks to see if
the encoding is actually needed.