diff _test/Test/Web/TT.pm @ 181:47dac58691ee

New templating system, small fixes
author sourcer
date Thu, 26 Jan 2012 01:15:57 +0400
parents 4267a2ac3d46
children ae8072f2f2a3
line wrap: on
line diff
--- a/_test/Test/Web/TT.pm	Fri Dec 30 23:40:00 2011 +0300
+++ b/_test/Test/Web/TT.pm	Thu Jan 26 01:15:57 2012 +0400
@@ -1,7 +1,7 @@
 package Test::Web::TT;
 use strict;
 use warnings;
-use encoding 'cp1251';
+use encoding 'utf8';
 
 use parent qw(IMPL::Test::Unit);
 use IMPL::Test qw(test failed);
@@ -21,11 +21,11 @@
     
     failed "Failed to create document" unless $document;
     
-    $document->LoadFile('Resources/simple.tt','cp1251');
+    $document->LoadFile('Resources/simple.tt','utf8');
     
     my $out = $document->Render;
     
-    open my $hFile,'<:encoding(cp1251)',"Resources/simple.txt" or die "Failed to open etalon file: $!";
+    open my $hFile,'<:encoding(utf8)',"Resources/simple.txt" or die "Failed to open etalon file: $!";
     local $/;
     my $eta = <$hFile>;