*Hi Okan, You need to specify/force the encoding.
The javamail doc reports "RFC822 and MIME header fields must contain only US-ASCII characters. If a header contains non US-ASCII characters, it must be encoded as per the rules in RFC 2047. The MimeUtility class provided in this package can be used to to achieve this. Callers of the setHeader, addHeader, and addHeaderLine methods are responsible for enforcing the MIME requirements for the specified headers. In addition, these header fields must be folded (wrapped) before being sent if they exceed the line length limitation for the transport (1000 bytes for SMTP). Received headers may have been folded. The application is responsible for folding and unfolding headers as appropriate." See also ** http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeUtility.html * and http://tools.ietf.org/html/rfc2047 Regards, Mathieu 2009/3/2 Okan Cetin <[email protected]> > Hi all, > I've an issue with encoding. What should i do to get mail body/subject text > without encoding problems? When i tried to read mail with using a mailet, > turkish characters shows up like '?' > And also there are no encoding problems when reading mail via a mail > client. > > Thanks & Regards. > Okan. > > > > ~ > otomatik oluşturuldu: > http://ocetin.net/log >
