Wednesday, September 5, 2001 04:56 AM
I have a servlet which reads mails from a pop3 mailserver. i sent gb2312 or big5 characters using the standard mail client as unicode. so my program is getting UTF8 characters.For representing them properly, i should get the character set. for that i tried to convert the input from UTF8 to Big 5 using
sun's charToByteBig5 class. and i set the SubstitutionMode to false.
So i expected the class to throw UnknownCharacterException when the input is something other than Big5.. But this method din't work.. Even if the input is Big5, it threw error.. So pls help to solve this problem.
thanks in advance