MT#7803 Fix UTF8 handling in invoice generation

gjungwirth/voicemail_number
Andreas Granig 11 years ago
parent c229863451
commit cbce5d0795

@ -49,7 +49,7 @@ if(-f $mfile) {
print "using user '$dbuser' with pass '$dbpass'\n"
if($debug);
my $dbh = DBI->connect('dbi:mysql:billing;host=localhost', $dbuser, $dbpass)
my $dbh = DBI->connect('dbi:mysql:billing;host=localhost', $dbuser, $dbpass, {mysql_enable_utf8 => 1})
or die "failed to connect to billing DB\n";
@ -217,6 +217,7 @@ sub generate_invoice_data{
#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
utf8::decode($svg);
if($svg){
#NGCP::Panel::Utils::InvoiceTemplate::preprocess_svg(\$svg);
}else{

Loading…
Cancel
Save