• Resolved JMichel C

    (@jmichel-c)


    Hi,

    I use Contact Form 7 plugin (CF7) in several forms on a website. It works well, even with foreign special characters (éèàçù …), in text or HTML mode.
    But when I want to encrypt email, all these char are badly encoded.

    I did not find how to send UTF-8 encoded email (from CF7). The only solution I found is decoding UTF-8 chars while encrypt the message.
    Do to so, I modified the line 1464 of ‘wp-pgp-encrypted-emails.php’ file :
    $smime_data = apply_filters( 'smime_encrypt', utf8_decode($message), $headers, $pub_cert );

    Is there a better way to send UTF-8 encoded email ?

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    If I remember correctly, UTF8 encoded email that is encrypted is still processed correctly, you just need to include the appropriate Content-Type MIME type header via CF7’s custom Header feature. Or, to put it another way: make sure that your email client understands that the content is UTF8 encoded by telling Contact Form 7 to say so explicitly in the message it ultimately generates. If that doesn’t work, you may have found a bug, and you should submit a bug report that is complete enough to be actionable.

Viewing 1 replies (of 1 total)
  • The topic ‘Special char encoding (UTF-8)’ is closed to new replies.