This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: UnsupportedEncodingException
- From: Michael Koch <konqueror at gmx dot de>
- To: java at gcc dot gnu dot org, gnustuff at thisiscool dot com
- Cc: Melanie <melanie_j_j at yahoo dot com>
- Date: Wed, 29 Sep 2004 09:30:19 +0200
- Subject: Re: UnsupportedEncodingException
- References: <SQ2Z84QO76POLJNMZV41UHFP94XGE.415a6089@d7500>
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.
Michael