Dompdf is converting quotation marks and apostrophes into question marks.

Click the following link and make a pdf to see an example:

http://asianproav.com/?q=node/37

Is this correctable? If so, how?

Comments

jcnventura’s picture

Status: Active » Fixed

dompdf doesn't support UTF-8 characters. The quotation marks and apostrophes that you're using in that page are not the simple ASCII version, so they can't be displayed by dompdf.

You have several solutions:

1. Try wkhtml or TCPDF as these support UTF-8.
2. Replace all the UTF-8 chars with ISO-8859-1 versions.

João

ckleiman’s picture

Status: Closed (fixed) » Fixed

Joao, thanks for the insight. I think it best to replace the UTF-8 chars with ISO-8859-1. The problem I'm having is how to do? I haven't been able to find anything on the web, so far. I've looked at DOS prompt commands, converters, charts etc. If you had this problem before can you share how you solved?

BTW, do you know if the pdf module can print blocks?

Right now the pdf module prints nodes, which, is fine as all my product pages are nodes. That said, I would also like to see the product specifications included in the pdf, which, are a block called out with a Quicktab so I guess the question is there a way to have the pdf module print a block?

Here's a thought.....I just viewed my source and saw this line in the header: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

I'm trying to find which file that line is in and try changing charset to ascii to see if it works.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.