...switch from current encoding to specified not supported..."

Hi,When I open a Notes document with IE6 SP2 I get error “…switch from current encoding to specified not supported…”

The document just contain a richtext field with xml content, begining with:

<?xml version="1.0" encoding="UTF-16"?> <?xml-stylesheet type="text/xsl" href="/resources/LCC.xsl"?> ...

I initialize the rt field from a stream, running a Java agent:

RichTextItem tmpXML = doc.createRichTextItem(“tmpXML”);

Stream stream = s.createStream();

if ( stream.open(XMLSource,“UTF-16BE”) ) {

tmpXML.appendText(stream.readText());

}

Does anyone know where is the problem?

Which encoding is being used in rt field?

Note: the same document with IE6 SP1 works fine!!!

Some help will be appreciate.

Thanks,

Sofia.