Hi!
I am developing a chinese web mail system.The charset of the platform where the web mail runs on is chinese big5.But the users always get mails whose charset is hz-gb-2312 or unicode.In order to convert these encodings to big5 and let users see the correct text,I must do some work like below.
String tmp = new String(mailText.getBytes(charset),"big5");
But this code always throw exception java.io.UnsupportedEncodingException when facing thses encodings I describe before.Is there any solutions?
BTW:When I convert the gb2312 encoding to big5 encoding,the code list in front seems not work fine and I can't see the correct mail text as expected.
Any advice will be greatly appreciated!
------------------
Java lover from hell!