diff --git a/lib/NGCP/Panel/Utils/Fax.pm b/lib/NGCP/Panel/Utils/Fax.pm index 1efcb98ba8..8f2e0fcac5 100644 --- a/lib/NGCP/Panel/Utils/Fax.pm +++ b/lib/NGCP/Panel/Utils/Fax.pm @@ -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;