X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fi18n%2Fdefault.t;h=d98828f0be6a73f1e7d9a712837381e1c1b1d143;hb=ed1f84b4e8f626245995ecda5afcf83092c153b2;hp=6c26b620719b37e7c3e359cd7cd07e1f390b56d7;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/t/i18n/default.t b/rt/t/i18n/default.t index 6c26b6207..d98828f0b 100644 --- a/rt/t/i18n/default.t +++ b/rt/t/i18n/default.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl -w use strict; use warnings; @@ -14,10 +13,10 @@ $m->content_contains(''); $m->add_header('Accept-Language' => 'zh-tw,zh;q=0.8,en-gb;q=0.5,en;q=0.3'); $m->get_ok('/'); -use utf8; -Encode::_utf8_on($m->{content}); -$m->title_is('登入', 'Page title properly translated to chinese'); -$m->content_contains('密碼','Password properly translated'); +$m->title_is( Encode::decode("UTF-8",'登入'), + 'Page title properly translated to chinese'); +$m->content_contains( Encode::decode("UTF-8",'密碼'), + 'Password properly translated'); { local $TODO = "We fail to correctly advertise the langauage in the block"; $m->content_contains('');