MT#58468 Fix special characters incorrectly interpreted by paps

Change-Id: I15682d0e3bbe53cc372a5eb1a162e7592e9a3b11
(cherry picked from commit 3c5cf0b537)
mr10.5.7
Fabricio Santolin da Silva 2 years ago
parent 53f28f4b93
commit b2529fb613

@ -11,6 +11,7 @@ use IPC::System::Simple qw/capture/;
use Data::Dumper;
use Net::Ping;
use URI::Escape qw(uri_unescape);
use Encode;
sub send_fax {
my (%args) = @_;
@ -94,7 +95,8 @@ sub send_fax {
$c->log->debug('error to retrieve tempfile of upload: ' . @_) if @_;
}
if ($args{data}){
$sendfax_args{input} = [\$args{data}];
my $text = Encode::encode('UTF-8', $args{data});
$sendfax_args{input} = [\$text];
}
my $client = new NGCP::Fax;
use Data::Dumper;

Loading…
Cancel
Save