MT#5879 Return utf usage for mysql after merge.

gjungwirth/voicemail_number
Irina Peshinskaya 11 years ago
parent d8fe5111f8
commit 9ca0ddc7bb

@ -43,7 +43,7 @@ my $dbh;
$dbuser = 'root';
$dbpass = '';
}
$dbh = DBI->connect('dbi:mysql:billing;host=localhost', $dbuser, $dbpass)
$dbh = DBI->connect('dbi:mysql:billing;host=localhost', $dbuser, $dbpass, {mysql_enable_utf8 => 1})
or die "failed to connect to billing DB\n";
}
@ -232,7 +232,7 @@ sub generate_invoice_data{
$svg_default = $t->context->insert('invoice/default/invoice_template_svg.tt');
#NGCP::Panel::Utils::InvoiceTemplate::preprocess_svg(\$svg_default);
}
my $svg = $dbh->selectrow_array('select data from invoice_templates where type = "svg" and reseller_id=?',undef,$provider_contract->{reseller_core_id});#is_active = 1 and
my $svg = $dbh->selectrow_array('select data from invoice_templates where is_active = 1 and type = "svg" and reseller_id=?',undef,$provider_contract->{reseller_core_id});#
utf8::decode($svg);
if($svg){
#NGCP::Panel::Utils::InvoiceTemplate::preprocess_svg(\$svg);

Loading…
Cancel
Save