Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
490 views
in Technique[技术] by (71.8m points)

html - Indian currency symbol not show when convert html2pdf in php

In my HTML report i used Indian new currency(?) symbol. When I convert HTML report to PDF using html2pdf extension, all currency symbol change to question mark symbol. How can I prevent this from happening?

In HTML: enter image description here

After convert to pdf: In PDF: enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
<?php
include("../mpdf.php");
$mpdf=new mPDF('');
$mpdf->WriteHTML('<div style="font-family:dejavusanscondensed">&#x20b9;</div>');
$mpdf->Output();
exit;
?>

for reference use the link below

How to print Indian Rupee(?) symbol in pdf using html?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...