I use javax.mail to call the mail server and send the file as an email attachment encoding the file name as follows: MimeUtility.encodeText(filename,"UTF-8",null)
While this works fine on WildFly 8 , it does not work on WildFly 9.x with the mail server . I mean, the description of the attachment was received in this format: =UTF-8BzrTOv866zrnOvM63IM68zrUgzrXOu867zrfOvc65zrrOsS5wZGY==
I've tried:
1) To find the relative setting on the application server - no luck.
2) Encode with ISO-8859-7 , which only works from time to time, since it seems to depend on the length of the file name and the presence of some characters.
3) Find the relative setting on the client (microsoft outlook), which, I believe, will skip some information for successful decoding.
Any ideas?
Thanks in advance!
java encoding utf-8 wildfly wildfly-9
evialxg
source share