UnsupportedEncodingException

Michael Koch konqueror@gmx.de
Wed Sep 29 16:36:00 GMT 2004


On Wednesday 29 September 2004 18:26, David Daney wrote:
> Michael Koch wrote:
> > On Wednesday 29 September 2004 09:13, Mohan Embar wrote:
> >>Hi Melanie,
> >>
> >>>How can i used other encodings? especially
> >>>windows-1256 or Cp1256? I tried code using
> >>>'windows-1256' under linux and and it worked correctly
> >>>without any class references.
> >>
> >>This probably has to do with the fact that the MinGW
> >>build doesn't use libiconv and the Linux builds do.
> >>The encoding you mentioned isn't one of the standard
> >>gcj encodings. I'm not knowledgeable enough about this
> >>to elaborate further.
> >
> > "UTF-8" is a standard encoding, "windows-1256" is obviously not.
> > (According to
> > http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.
> >html)
> >
> > I'm pretty sure the 6 charsets mentioned there are standard of
> > whole JDK, not only java.nio.charset.
>> Sun's specification only mandates the 6 charsets, but their
> implementation supplies many more.
>> There doesn't seems to be any reason that libgcj could not supply
> extra Charsets if desired. I don't think the goal should be to do
> the minimum necessary to meet the spec.

I never said we dont may support more. I just meant that at least 
these 6 have to be supported.
> The patch I posted in this message:
>> http://gcc.gnu.org/ml/java/2004-09/msg00174.html

Nice thing.
> might be useful. One problem I see with the current Charset
> implementation is that all possible charsets are initialized when
> the Charset class is initialized. It might be a good idea to only
> initialize them on demand.

Yeah, thats hurdle in my eyes too. This should be fixed somehow.
Michael


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /