I am using java mail, and facing an issue with the following error: java.io.UnsupportedEncodingException: us-ascii big5 at sun.nio.cs.StreamDecoder.forInputStreamReader
The following is the Mime header causing this issue.
Content-Type: text/plain; charset="us-ascii, big5"
(I see non english characters on the content)
Is this valid? what could be a solution?
One more related issue, i see different variations of charsets(spl characters around the charset value) that causes this exception: eg.
charset="'UTF-8'"
charset=`UTF-8`
charset=UTF=8
charset=utf
charset=\"UTF-8\" etc.,
Note that this does not happen only to utf-8, happens to other char sets too, however email clients like outlook etc., opens and decodes these emails smartly.
Any ideas?