Php 注意:iconv():在输入字符串中检测到非法字符。Pdf包
ContextErrorException:注意:iconv():在/var/www/adwords up/vendor/zendframework/zendpdf/library/zendpdf/Resource/Font/Simple/AbstractSimple.php第253行的输入字符串中检测到非法字符 我对非英语符号有这个错误。Symfony 2.3,PdfBundle 我怎样才能解决这个问题?谢谢Php 注意:iconv():在输入字符串中检测到非法字符。Pdf包,php,symfony,Php,Symfony,ContextErrorException:注意:iconv():在/var/www/adwords up/vendor/zendframework/zendpdf/library/zendpdf/Resource/Font/Simple/AbstractSimple.php第253行的输入字符串中检测到非法字符 我对非英语符号有这个错误。Symfony 2.3,PdfBundle 我怎样才能解决这个问题?谢谢 $total_string=NumToString::num2str($to
$total_string=NumToString::num2str($total);
$facade = $this->get('ps_pdf.facade');
$xml = $this->renderView('@AdwordsupClient/Billing/expense.pdf.twig',[
'total_string'=>$total_string]);
$content = $facade->render($xml);
return new Response($content, 200, array('content-type' => 'application/pdf; charset=utf-8'));
快速猜测一下:检查iconv默认编码并调整它以适应您的输入。