Hi,
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")
and:
Email.setMimeType("text/html")
Email.setEncoding("utf-8")
and:
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,
Ivan
Hi Sasha, sorry for the late response. You can check the solution on http://stackoverflow.com/questions/3451256/javamail-changing-charset-of-subject-line Look at "MimeUtility.encodeText" part. Regards, Ivan
I hope you're still active member :) How exactly you used this solution in Jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
could you please share the solution, I am trying to find a way to enable the site-wide support for cro letters?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.