I am using dompdf to create a pdf. When I pass ₹
to pdf it converts into ?
How I can show indian currency symbol in pdf using dompdf?
The core PDF fonts (Helvetica, Times Roman, Courier) in dompdf only support characters that are included in Windows ANSI. Additionally, though dompdf 0.5.x can display other characters it requires much work to set up.
With dompdf 0.6.0 full Unicode character support is enabled so long as you have loaded a font that covers your character set. dompdf 0.6.0 (currently in beta) includes the DejaVu fonts, which do support ₹. Displaying that character requires only something like the following:
<span style="font-family: DejaVu Sans; sans-serif;">₹</span>
For more details on configuring dompdf with Unicode support see the Unicode How-to on the dompdf wiki.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With