java - utf-8 is not working when i am attaching file name using mimeMessageHelper using webLogic -
it's working on tomcat not working on weblogic body can , when trying decode information not getting proper output file name not getting proper output when attaching file name
 mimemessage message = mailsender.createmimemessage();   mimemessagehelper mh = new mimemessagehelper(message, true, "utf-8");  multipart multipart = new mimemultipart();  mimebodypart messagebodypart1 = new mimebodypart();   mh.setto(to);  mh.setfrom(from);  mh.setsubject(subject);  mh.settext(content, true);   string attachmentname = "cây chàm sự kiện.pdf";   if (!stringutils.isempty(attachmentname) && attachmentdata != null)  {    when coverting string utf - 8 not getting propet when printing value getting proper output attachment file name not getting    mh.addattachment(attachmentname, new bytearrayresource(attachmentdata));  }  mailsender.send(message);       
 
  
Comments
Post a Comment