dompdf 在页面输入乱码 |
[eluser]KingSkippus[/eluser]
Perhaps the Content-Type in your header is set incorrectly? In your controller, try adding the following line before outputting the PDF file: Code: header('Content-Type: application/pdf'); (I am sorry, I do not read Chinese, but thanks to Google, I got the gist of it. You are using http://codeigniter.com/wiki/PDF_generation_using_dompdf and it is generating the gibberish output you pasted above, and you want to know why it is doing that.) 翻译 |
Messages In This Thread |
dompdf 在页面输入乱码 - by El Forum - 07-21-2010, 09:46 PM
dompdf 在页面输入乱码 - by El Forum - 07-21-2010, 10:10 PM
|