Email template subject encoding

Avatar

Avatar
Springboard
Level 2
Martin-Nekula
Level 2

Likes

3 likes

Total Posts

14 posts

Correct reply

2 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back 5
View profile

Avatar
Springboard
Level 2
Martin-Nekula
Level 2

Likes

3 likes

Total Posts

14 posts

Correct reply

2 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back 5
View profile
Martin-Nekula
Level 2

03-03-2021

Hello,

we have a long-term problem with encoding in email subjects, where characters like "šáěíéščřý" are not shown correctly. Until now, we have been changing the subjects to use basic ascii letters. But now we are expanding to russian customers, and with azbuka (cyrilic) letters we can no longer do this.

In principle, our mechanism is the same as described here: https://adobe-consulting-services.github.io/acs-aem-commons/features/e-mail/email-api/index.html

Where they are discussing the same problem in the comments below the article, with a final workaround: https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/1030

However, that would still mean to separate the subject from the template. That would mean additional work with moving the subjects from templates to the i18n dictionary.

So, is this the only solution as to now?

Best Regards

Martin

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 2
Martin-Nekula
Level 2

Likes

3 likes

Total Posts

14 posts

Correct reply

2 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back 5
View profile

Avatar
Springboard
Level 2
Martin-Nekula
Level 2

Likes

3 likes

Total Posts

14 posts

Correct reply

2 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back 5
View profile
Martin-Nekula
Level 2

11-03-2021

Apache Sling Request Parameter Handling configuration for the Default parameter encoding is set correctly to UTF-8, that is not the problem.

With lack of any other answers the workaround mentioned here is still the best approach https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/1030

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

198 likes

Total Posts

214 posts

Correct reply

61 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

198 likes

Total Posts

214 posts

Correct reply

61 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

03-03-2021

Hi @Martin-Nekula,

 

Please check Apache Sling Request Parameter Handling configuration for the Default parameter encoding" for your instance. Generally this encoding is used to display or send the data [which can include special characters as well]. If you are using the AEM default Day CQ Mail Service checking this would be helpful.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.