[Rt-commit] r17344 - rt/3.8/trunk/t/web
ruz at bestpractical.com
ruz at bestpractical.com
Wed Dec 24 21:49:39 EST 2008
Author: ruz
Date: Wed Dec 24 21:49:38 2008
New Revision: 17344
Modified:
rt/3.8/trunk/t/web/basic.t
Log:
* convert our test file into UTF-8 charset from latin-1
Modified: rt/3.8/trunk/t/web/basic.t
==============================================================================
--- rt/3.8/trunk/t/web/basic.t (original)
+++ rt/3.8/trunk/t/web/basic.t Wed Dec 24 21:49:38 2008
@@ -40,8 +40,8 @@
is ($agent->{'status'}, 200, "Loaded Create.html");
$agent->form_number(3);
# Start with a string containing characters in latin1
-my $string = "I18N Web Testing æøå";
-Encode::from_to($string, 'iso-8859-1', 'utf8');
+my $string;
+$string = Encode::decode_utf8("I18N Web Testing æøå");
$agent->field('Subject' => "Ticket with utf8 body");
$agent->field('Content' => $string);
ok($agent->submit(), "Created new ticket with $string as Content");
@@ -53,8 +53,7 @@
is ($agent->{'status'}, 200, "Loaded Create.html");
$agent->form_number(3);
# Start with a string containing characters in latin1
-$string = "I18N Web Testing æøå";
-Encode::from_to($string, 'iso-8859-1', 'utf8');
+$string = Encode::decode_utf8("I18N Web Testing æøå");
$agent->field('Subject' => $string);
$agent->field('Content' => "Ticket with utf8 subject");
ok($agent->submit(), "Created new ticket with $string as Subject");
More information about the Rt-commit
mailing list