Try (a) UTF-8, (b) leave out the encoding attribute, or (c) look at the
following URL to determine the correct encoding name. Java, Xerces, XML
standards etc tend to use small variations, such as different
capitalizations, with or without hyphen etc. So experimentation would
help.

http://java.sun.com/products/jdk/1.1/docs/guide/intl/intlTOC.doc.html

Regards...

Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
[EMAIL PROTECTED]

----- Original Message -----
From: "olegabr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 22, 2001 11:17 AM
Subject: Re: Re: win-1251 encoding support


> I've done it and encoding==cp1251
> but it is not supported by xerces
>
> question: how can I convert my files in one of encodings
> that is already supported?
>
>
>
> ------- Исходное сообшение -------
> Дата: 22.02.01, 15:14
> От: jean-frederic clere <[EMAIL PROTECTED]>
> Кому: <[EMAIL PROTECTED]>
> Тема: Re: win-1251  encoding support
>
> olegabr wrote:
> >
> > hi all!
> > I use xerces-j 1.3.0 with jdk 1.1.8
> > and I try to parse xml files which was written under windows-1251
> > encoding. And I have an error: unsupported encoding "windows-1251".
> > So, what can I do to avoid this problem?
> >
olegabr.
>
> I have found at iana:
> +++
> Name: windows-1251
> MIBenum: 2251
> Source: Microsoft  (see ../character-set-info/windows-1251)
> [Lazhintseva]
> Alias:
> +++
>
> Try looking in: src/org/apache/xerces/readers/MIME2Java.java the
xerces
> supported encoding are there.
>
> On the  machine where the data where typed in try the following test:
> +++
> encoding = System.getProperty("file.encoding", "8859_1");
> +++
> Of course 8859_1 is not the excepted answer!
> Then check for this one in MIME2Java.java.
>
> Cheers
>
> Jean-frederic
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to