Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DOMPDF Doesn't support arabic characters

Tags:

php

Can Any one help me please,

I'm using DOMPDF and it's working good but not with the Arabic characters. It shows these (???)

I tried using : <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> in the head tag , also : <style type="text/css"> html,body{ font-family: 'tahoma' ; } </style>

but it's not working. Please help me with this Thanks in Advance :)

like image 326
Haya D Avatar asked Aug 07 '14 20:08

Haya D


1 Answers

Use below style in your html

<style> 
 * { font-family: DejaVu Sans, sans-serif; }
</style>
like image 184
Meldin Xavier Avatar answered Sep 17 '22 17:09

Meldin Xavier