我有以下代码:
\n\n$pdf = \\App::make(\'dompdf\');\n$pdf->loadView(\'offers.pdf\',compact(\'email\',\'messages\'));\nreturn $pdf->stream();\nRun Code Online (Sandbox Code Playgroud)\n\npdf.blade.php:
<!doctype html>\n<html class="no-js" lang="sk">\n<head>\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <title></title>\n <style type="text/css">\n * {\n font-family: "Arial";\n }\n </style>\n</head>\n<body>\nRozpo\xc4\x8det, Volite\xc4\xben\xc3\xa9 \xc4\x8dasti\n</body>\n</html>\nRun Code Online (Sandbox Code Playgroud)\n\nPDF 文档如下所示:
\n\nRozpo?et,Volite?n\xc3\xa9 ?asti\nRun Code Online (Sandbox Code Playgroud)\n\n但我需要显示文件中的特殊字符pdf.blade.php,你有什么解决方案吗?