about charset=hz-gb-2312
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   xiaojun_yu
Posted On:   Thursday, March 14, 2002 12:40 AM

this is some of my mail: Date: Thu, 14 Mar 2002 13:09:22 +0800 From: yuxiaojun Subject: 中文hehe To: yuxiaojun@iei-china.com Message-id: <002601c1cb17$f2d7a670$0201040a@yxj.com> X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Content-type: text/plain; charset=hz-gb-2312 Content-transfer-encoding: quoted-printable 这是中文的信 and when I use: Object o = p.getContent(); that p is javax.mail.Part I got an error like: java.io.UnsupportedEncodingException: hz-gb-2312 so who can help me with that problem? thanks very much!    More>>

this is some of my mail:

Date: Thu, 14 Mar 2002 13:09:22 +0800
From: yuxiaojun

Subject: 中文hehe

To: yuxiaojun@iei-china.com

Message-id: <002601c1cb17$f2d7a670$0201040a@yxj.com>

X-Mailer: Microsoft Outlook Express 5.50.4522.1200

Content-type: text/plain; charset=hz-gb-2312

Content-transfer-encoding: quoted-printable


这是中文的信



and when I use:

Object o = p.getContent();

that p is javax.mail.Part

I got an error like:
java.io.UnsupportedEncodingException: hz-gb-2312


so who can help me with that problem?
thanks very much!

   <<Less

Re: about charset=hz-gb-2312

Posted By:   Jeff_Gay  
Posted On:   Sunday, March 17, 2002 05:36 AM

Hmmm...
JavaMail uses the code conversions available in the JDK. You can find these in the Internationalization section of the JDK documentation.


There are additional mappings supported by JavaMail too. You need to see the javamail.characterset.map in the JavaMail jar.


The HZ-GB-2312 character set is valid. It's probably too new for your JDK.


Also, fell free to send me some email with that character encoding. I'd like to try it with ICEMail.
kunugi@icemail.org

About | Sitemap | Contact