It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Custom mail listener, set UTF-8 encoding in email header for attachment name

Deleted user Oct 26, 2014


how to set UTF-8 encoding for the name of attachments in email header? Have Croatian letters in the name of the file. For example a text file called: "att_ććććć.txt" . After the email was send to specific email address the name of the file gets wrong formatted: "att_???". I tried:

new String(attachment.getFilename().getBytes("CP1250"), "UTF-8")




MimeBodyPart.setHeader("Content-Type", "text/html")
MimeBodyPart.setHeader("Content-Transfer-Encoding", "quoted-printable")


And still won't display the name of the file correctly. Can anyone help?

Best Regards,


3 answers

0 votes
Deleted user Oct 30, 2014


could you please share the solution, I am trying to find a way to enable the site-wide support for cro letters?

0 votes
Deleted user Nov 27, 2014

Hi Sasha, sorry for the late response. You can check the solution on Look at "MimeUtility.encodeText" part. Regards, Ivan

I hope you're still active member :) How exactly you used this solution in Jira?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

221 views 3 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you