haipeng du wrote:
But from a mail client, that message is shown correctly. So is that possible
I can resolve this from programming?

If this happens then there are no bytes greater than 127 or your sending agent and receiving agent have the same default charset and simply apply a default charset when an unknown charset is found.

You can catch that exception, replace the charset with a different charset and retry the operation you where processing.

Stefano

On 4/18/06, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
haipeng du wrote:
Yes, I got one email outside and I try to read the content in mailet.
the part of header is:

MIME-Version: 1.0
X-MIME-Autoconverted: from 8bit to quoted-printable by
smtp.comphealth.com id k3I4FhUE010552
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=unknown-8bit

Because "unknown-8bit" is not supported. How could I configure james
so that I can read the content that has some error?
Thanks a lot.
unknown-8bit is not supported because it is an invalid charset. You
can't decode an "unknown-8bit" source.

Try asking in the JavaMail forum or better try to understand why you
receive messages with this unexisting charset (the sender has something
wrong).

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to