Vitaly Harisov wrote: > > Why CP1251 does not supported by XXE? > JRE 1.4.x rt.jar contains ByteToCharCp1251, so it is not so difficult.
My answer assumes that your email contains a technical question, not a request for an enhancement (RFE). XXE does not support Windows-1251 because the XML parser we use, James Clark's XP, does not support Windows-1251. For efficiency reasons, XP converts bytes to characters without using the utilities found in the Java runtime. Now why is this related to *saving* the document using the Windows-1251? after all XP is not used to save the document. The anwser is: we do not want to save a document using an encoding we cannot read back.

