oblac / jodd

Jodd! Lightweight. Java. Zero dependencies. Use what you like.

Home Page:https://jodd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jodd Mail: Chinese Charset (e.g. gb2312) txt file attachment garbled

jawar-cn opened this issue · comments

Current behavior

Recieve a mail with chinese charset txt file attachement, and all Chinese Charactors ard garbled
接受一封带有中文编码格式txt附件的邮件,附件中的中文乱码.

Expected behavior

Steps to Reproduce the Problem

Would you be so kind to save the email? Usually this is a problem of sending and not having set the correct encoding. You can use EMLComposer for saving received emails. Or simply save it from your client as RAW ?

@igr Hey, man. It had the same mistake as issue 725. You can have a look!

@jawar-cn 老外很懒,😄

This should work:)

Please see commit - I added sending of Cyrilic string. Just please check the encodings.