티스토리 뷰

공부

[Java] mail filename encoding UTF-8

승가비 2020. 7. 10. 23:25
728x90
messageBodyPart.setFileName(MimeUtility.encodeText(filename, "UTF-8", null));

https://stackoverflow.com/questions/4960556/javamail-sending-mail-attachment-from-string-encoding-utf-8/17020189

 

JavaMail sending mail attachment from string - encoding UTF-8

My application has to send a textfile, which it first has to generate as a String. The text contains non-ASCII symbols, so i would like it to be UTF-8. I've tried a lot of variants, but all i recei...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

`/etc/hosts`  (0) 2020.07.13
드모르간의 법칙 (De Morgan's law)  (8) 2020.07.13
[Django] remove prefix app name for table  (0) 2020.07.09
[PyCharm] PYTHONPATH=  (0) 2020.07.09
[Django] created_at, updated_at  (0) 2020.07.09
댓글