Accents when generating invoice PDF and sending email
  • setzer July 2012

    Hello, I've just installed ofuz to my server and started to use it and found it awesome. But there's something that is bugging me:
    When I create an invoice, if I use accented characters like áéíóú or even a cedilla (ç), the invoice is saved correctly (including at the database) and displayed correctly at its page. However if I send it by email the email body and the attached pdf come with invalid characters replacing the accents. Is this a bug? Or is there something else wrong? My database encoding is UTF-8.
    Also, I have one doubt: I've looked at the messages.po file looking for the email contents to translate and haven't found anything. Is there another localization file that I need to translate to my native language? Or is the email body inside a php file?

  • abhikabhik July 2012

    @setzer looks like its an issue with the PDF library that we have used to generate the PDF, HTML2FPDF. HTML2FPDF looks like does not take care of the uni-code characters.

    We have added this as a bug and will replace the PDF with a new library and will release a patch.

  • setzer July 2012

    Thank you! But just for curiosity: since the problem is html2pdf, why does the email also comes with invalid characters in its body?
    And is it possible to translate the email body? I haven't found its contents in the messages.po file :s

  • abhikabhik July 2012

    Hi setzer, the emails are all defined in the table "emailtemplate".
    You can directly update the table to have the content there.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

P.O. Box 121, Culver City, CA 90232, 310-765-4632
Copyright © 2009 - 2013. All rights reserved.
Terms of Service
Privacy Policy