I have set my settings to ja_JP.utf8 in my system, and it works mostly fine, except it is outputting some strange unneeded characters in the .pdf (and only the .pdf).

The prices should look like this: ¥70,000

But right now they are looking like this: ï¿¥70,000.00

I don't know what the initial ï¿ characters are, or why they are appearing, and Japan doesn't have anything below single yens, so there shouldn't be a decimal or extraneous zeros for this. Any idea how to change it?

Comments

pietervogelaar’s picture

Status: Active » Closed (works as designed)

Dompdf is not utf8 compatible. So that will probably cause it. In the future I will add support for another library that does support utf8.

http://code.google.com/p/dompdf/wiki/FAQ
Q: How can I print the euro symbol?
A: You can print the euro symbol (€) using the following entity: &#0128.

Maybe there is also an entity available for the yen?

Pieter

Jaypan’s picture

Thanks. I believe that's actually what I did, but it still happened that way. Anyways I managed to fix it somehow (it's a few days ago with a lot of work in the middle so I don't remember the specifics! But I think it was through the use of some nice regex).