automatic UTF-8 decoding/encoding

agranig/1_0_subfix
Lars Dieckow 12 years ago
parent 6d9ae4bffe
commit 1ae8494e23

@ -45,7 +45,7 @@ __PACKAGE__->config(
# Disable deprecated behavior needed by old applications
disable_component_resolution_regex_fallback => 1,
enable_catalyst_header => 1, # Send X-Catalyst header
encoding => 'UTF-8',
'View::HTML' => {
INCLUDE_PATH => [
__PACKAGE__->path_to('share', 'templates'),

@ -4,7 +4,9 @@ use Module::Runtime qw(use_module);
extends 'Catalyst::Model::DBIC::Schema';
my $connect_info = use_module(NGCP::Panel->config->{'Model::billing'}{schema_class})->config->as_hash->{billingdb};
$connect_info->{mysql_enable_utf8} = 1;
__PACKAGE__->config(
connect_info =>
use_module(NGCP::Panel->config->{'Model::billing'}{schema_class})->config->as_hash->{billingdb}
connect_info => $connect_info,
);

@ -4,7 +4,9 @@ use Module::Runtime qw(use_module);
extends 'Catalyst::Model::DBIC::Schema';
my $connect_info = use_module(NGCP::Panel->config->{'Model::provisioning'}{schema_class})->config->as_hash->{provisioningdb};
$connect_info->{mysql_enable_utf8} = 1;
__PACKAGE__->config(
connect_info =>
use_module(NGCP::Panel->config->{'Model::provisioning'}{schema_class})->config->as_hash->{provisioningdb}
connect_info => $connect_info,
);

@ -7,7 +7,7 @@ extends 'Catalyst::View::TT';
__PACKAGE__->config(
TEMPLATE_EXTENSION => '.tt',
render_die => 1,
ENCODING => 'UTF-8',
WRAPPER => 'wrapper.tt'
);

Loading…
Cancel
Save