Very strange NotesSaxParser behaviour

Hi everyone!

The strange thing happens when I try to parse an xml, that contains national symbols (russian chars in my case). English symbols & numbers are ok; national symbols are displayed as bold “|”.

Encoding of text in XML is Windows-1251 (it is not written to a XML header; it is:

<?xml version="1.0"?>

; when I add encoding=“windows-1251” Lotus says that it can’t find a decoder…).

When I simply read a file from a stream to a notes String, all text is ok.

What’s wrong? Auto conversion of any kind or something?

Thanks in advance,

Dmitry.

Subject: Found solution.

The problem is that SAX and DOM parsers only know UTF-8 And ISO-… (forgot numbers) encodings.

For any others encodings to work, you must explicitly set “System” as encoding when opening a NotesStream.

Designer documentation says that “System” is default, but - until you do

stream.Open(file.xml, “System”)

Lotus won’t understand you.