Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
pietervogelaar CreditAttribution: pietervogelaar commentedDompdf 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: €.
Maybe there is also an entity available for the yen?
Pieter
Comment #2
Jaypan CreditAttribution: Jaypan commentedThanks. 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).