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

Reply via email to