Skip to main content
tony_olugbenga
Oct 16, 2015 2:26 AM UTC
Solved

Special characters/Diacritics

Hi,

I am having an issue with the subject line in a form when I want to send an email. It does not accept words like ä in the subject line. It returns the error "org.apache.commons.mail.EmailException: Encoding error (500)". Can anyone please help me with this. Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ove_LindströmAccepted solution
Level 6
Oct 16, 2015 2:26 AM UTC

You need to make sure you are always UTF-8 encoding all the strings and if you are using the HtmlMail. We also make sure that we HTML encode the strings before using it in any field in the mailer, since we don't know if the recipient understands our encoding or not.

/Ove

4 replies

tony_olugbenga
Oct 16, 2015 2:26 AM UTC

Yes all the strings are UTF-8 encoded. I have attached the start file for my CQ5 in case this could help you guys with the issue.

Translate
tony_olugbenga
Oct 16, 2015 2:26 AM UTC

Yes. I type in my company email into the "mailto" space. Version 5.4. It works when I type in non diacritic words e.g test. However whenever I enter ay diacritic words like ö I get the error.

Translate
Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

Are you using HtmlEmail ?  Which aem version?

Translate
Ove_LindströmAccepted solution
Level 6
Oct 16, 2015 2:26 AM UTC

You need to make sure you are always UTF-8 encoding all the strings and if you are using the HtmlMail. We also make sure that we HTML encode the strings before using it in any field in the mailer, since we don't know if the recipient understands our encoding or not.

/Ove

Translate