티스토리 뷰

공부

[Java] mail filename encoding UTF-8

seunggabi 승가비 2020. 7. 10. 23:25
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

 

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

`/etc/hosts`  (0) 2020.07.13
드모르간의 법칙 (De Morgan's law)  (0) 2020.07.13
[Java] mail filename encoding UTF-8  (0) 2020.07.10
[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
댓글
댓글쓰기 폼