2011-09-09 26 views

Trả lời

8

Cố định bằng cách thêm này để vào đầu html:

<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
2
You can write in PDFKIT configration. 

PDFKit.configure do |config| 
     config.wkhtmltopdf = '/opt/wkhtmltopdf' 
     config.default_options = { 
      :encoding  => 'UTF-8' 
      :page_size  => 'Letter', 
      :margin_top => '0.3in',   
      :margin_bottom => '0.1in',   
      :print_media_type => true      
     } 
end 
Các vấn đề liên quan