Closed GoogleCodeExporter closed 9 years ago
The default character encoding of PDFs produced by dompdf is Windows ANSI.
Character that do not render as expected with the default encoding are probably
not supported.
About Windows ANSI:
http://en.wikipedia.org/wiki/Windows-1252
Because of the limitations of the default encoding we generally recommend that
you always configure dompdf for Unicode compatibility and use a non-core font
(such as one of the DejaVu fonts).
See the following document for information on how to enable Unicode support:
http://code.google.com/p/dompdf/wiki/CPDFUnicode
See the following for a sample rendering using DejaVu Sans:
http://eclecticgeek.com/dompdf/debug.php?identifier=2bb6d9fcc2ff1dbfe764b2e684aa
1b8a
You could also go the route of using the "Symbol" font, Like Windows ANSI it
uses a 255 character encoding. However, it's harder to work with since it uses
a custom character mapping. See:
http://eclecticgeek.com/dompdf/debug.php?identifier=a1cc23e87a90966524c0a9aab23e
7a95
About the Symbol font:
http://en.wikipedia.org/wiki/Symbol_font
Original comment by eclecticgeek
on 28 Feb 2012 at 12:35
Original comment by eclecticgeek
on 30 May 2013 at 5:16
Original issue reported on code.google.com by
mr.r...@gmail.com
on 27 Feb 2012 at 8:32