Re: Reading mails with UTF-8 charset-encoding

2004-10-23 Thread tobe
I may be wrong here since I don't know exactly what you are doing, but if you get an InputStream from the message, that consists of raw bytes which have to be decoded. There is a system property, file.encoding which controls the default encoding used on your system. There is also a javamail pro

Re: Reading mails with UTF-8 charset-encoding

2004-10-22 Thread Jose Andres Perez
Sorry, :( The returned mail content is the following and not the one in previous mail. FROM: [EMAIL PROTECTED] TO: [EMAIL PROTECTED] MAIL CONTENT-TYPE: text/plain; charset=UTF-8; format=flowed SUBJECT: ?? ?? BODY: ?? ?? Any idea? Thanks, jose Jose Andres Perez wrote: Hi, I want to read the mail

Reading mails with UTF-8 charset-encoding

2004-10-22 Thread Jose Andres Perez
Hi, I want to read the mail content I received in my mailet. I run it in James 2.2.0. The mail content I receive from outside is UTF-8, but when I try to read mail data I do not get the original. For example, if the original mail has the following format FROM: [EMAIL PROTECTED] TO: [EMAIL PROTE