What does the start of the pInput stream contain? One quick but ugly way of checking this would be to write it to a scratch global before the call to OpenStream which errors, e.g.
Set ^tMurillo=pInput.Read(255) Do pInput.Rewind()
Then afterwards run the following in Terminal:
w ^tMurillo w $a(^tMurillo,1),!,$a(^tMurillo,2),!,$a(^tMurillo,3)
This should show us whether the creator of the stream started it with a BOM character or sequence, and also whether there is an XML header specifying an encoding.
That information is apparently important to the
- Log in to post comments




