Skip to content

Commit

Permalink
Tests: WWW::Mechanize correctly returns characters now
Browse files Browse the repository at this point in the history
While there ay have been bugs surrounding encodings in LWP or
WWW::Mechanize previously, the ->content method correctly returns
characters and not bytes for all modern versions.  Remove the explicit
adjustment.
  • Loading branch information
alexmv committed Sep 3, 2014
1 parent fb58e26 commit b2db8fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion t/i18n/default.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ $m->content_contains('<html lang="en">');

$m->add_header('Accept-Language' => 'zh-tw,zh;q=0.8,en-gb;q=0.5,en;q=0.3');
$m->get_ok('/');
Encode::_utf8_on($m->{content});
$m->title_is( Encode::decode("UTF-8",'登入'),
'Page title properly translated to chinese');
$m->content_contains( Encode::decode("UTF-8",'密碼'),
Expand Down

0 comments on commit b2db8fc

Please sign in to comment.