don't preload for development, and encode output as UTF-8

This commit is contained in:
Graham Knop 2010-05-09 08:32:05 -05:00
parent defb78ab64
commit 99386f52eb
2 changed files with 10 additions and 1 deletions

View file

@ -8,6 +8,11 @@ builder {
my $config = $wg->config;
enable 'Log4perl', category => $config->getFilename, conf => WebGUI::Paths->logConfig;
enable 'SimpleContentFilter', filter => sub {
if ( utf8::is_utf8($_) ) {
utf8::encode($_);
}
};
# Reproduce URL handler functionality with middleware
enable '+WebGUI::Middleware::Snoop';