• Resolved stipavica

    (@stipavica)


    When I send an email with a pdf template, I have “?” instead UTF-8 characters in email. How to resolve this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Franky

    (@liedekef)

    Do you mean the “?” is in the pdf template? Or in the body of the mail? Can you provide an example?
    Also, how are you sending the mail (via “php mail”, “wp mail”, smtp, …)? It is in the EME settings.

    • This reply was modified 6 years ago by Franky.
    Thread Starter stipavica

    (@stipavica)

    https://prnt.sc/s7zqrq (from pdf template in email)

    I am sending the mail with SMTP.

    Plugin Author Franky

    (@liedekef)

    Ok, so the issue is in the PDF template, correct? Can you provide such a character, so I can try it too?

    Thread Starter stipavica

    (@stipavica)

    try this: č ć đ ž š

    Plugin Author Franky

    (@liedekef)

    Ok, the reason is mentioned here:
    https://github.com/dompdf/dompdf/wiki/About-Fonts-and-Character-Encoding

    So, for now to solve it quickly I changed the font to “Dejavu Sans” on the PDF output (but this might not be to the liking of everyone, so to be discussed …).
    This is the change:
    https://plugins.trac.wordpress.org/changeset/2294362/

    Thread Starter stipavica

    (@stipavica)

    Now template is correct but when I submit RVSP form I have this error message: An error has occurred
    The form is submitted successfully.

    • This reply was modified 6 years ago by stipavica.
    • This reply was modified 6 years ago by stipavica.
    Plugin Author Franky

    (@liedekef)

    That means you have an error … you should check your logfiles. If the error did not occur before your changes but they do now, it means you have a typo. If not, you should post/show a demo event where this problem can be reproduced and also start a new thread (because the RSVP part is then not related to the pdf issue). Also, check if the error occurs without the PDF attachment.

    Thread Starter stipavica

    (@stipavica)

    I have no error without PDF Template, I added your code to members, people and rvsp.php files and it cause the error. Do you know why?

    Plugin Author Franky

    (@liedekef)

    Well, that means you have a typo somewhere. Did you check your webserver php error logfiles? And also an example event would help …

    Thread Starter stipavica

    (@stipavica)

    no errors in log file. I try with an example event and I have the same error.

    Plugin Author Franky

    (@liedekef)

    Then post an url to a test event please, so I can try too.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘UTF-8 pdf template’ is closed to new replies.