Hi Neil,

> First about your patch--diff -u is the best command to use when submitting
> patches; at least that's what we've become used to on this list.  It's also
> often best not to end the attachment file name with a .txt extension, since
> some e-mail clients (cf. Lotus Notes...) like to in-line those attachments.
> 

I got the way it should be done.Thank you !!


> Now about the "bug":  I think that GB2312 is the IANA name for this
> encoding, not gb2312.  So I don't think there's a bug in this case at all;
> GB2312 works like a charm.  If no one disagrees I'll tag the bug as
> invalid.
> 

Yes,GB2312 is the IANA (MIME-preferred) name and also the java encoding name for 
this encoding but if gb2312 is given in the xml file,it should be converted to 
uppercase before being mapped to the corresponding java encoding name. 

A snippet of the current code :

        String javaEncoding = EncodingMap.getIANA2JavaMapping(encoding);
        if (javaEncoding == null) {
            javaEncoding = encoding;
        }
        
Here when gb2312 is given, javaEncoding gets the value gb2312 which results in 
the error [Could not load class: sun.io.ByteToChargb2312].

Hope you're convinced.

Pavani

-- 

Pavani Mukthipudi
Sun Microsystems Inc.

Phone: 080 - 2298989   Extn: 87390


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

Reply via email to