cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding for subject and text in Activiti Mail Task

shar
Champ in-the-making
Champ in-the-making
Can i set encoding for mail subject and text in Activiti Mail Task?
9 REPLIES 9

jbarrez
Star Contributor
Star Contributor
I don't know. We're using Apache commons mail - does it have the ability to set the encoding?

shar
Champ in-the-making
Champ in-the-making
first, even setCharset

althhough I use such construction now in implementation TaskListener

mail.setSubject(new String(delegateTask.getName().getBytes("KOI8_R"),"ISO-8859-1"));

jbarrez
Star Contributor
Star Contributor
So, is your String encoding correct at that point?

So adding the setCharSet to the mail sending would fix your issue?

shar
Champ in-the-making
Champ in-the-making
Yes. I checked. Using setCharset solve my problem.

jbarrez
Star Contributor
Star Contributor

arkadi
Champ in-the-making
Champ in-the-making
While setting email charset is possible in XML, the Designer does not have an UI field to specify it.
It seems logical to me that just putting utf-8 unconditionally in generated XML will be sufficient for almost any purpose.
Currently, the email tasks with non-ASCII character (designed in Designer) arrives as
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
with diacritics symbols replaced with '?'.

Should a open an issue for this?

jbarrez
Star Contributor
Star Contributor
Yes, should be easy to fix.

Also mention in the issue the need for the field in the designer.

arkadi
Champ in-the-making
Champ in-the-making

koyex
Champ in-the-making
Champ in-the-making
Its my first time to visit this site and i found it great and nice. i really appreciate those first comments and also thanks for letting me post my messages<a href="http://increasemyplays.com/buy-soundcloud-plays/">
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.