XML -"Switch from current encoding to specified encoding not supported."...????using hebrew

XML -"Switch from current encoding to specified encoding not supported."...????using hebrew

Post by tomer dro » Wed, 08 Sep 1999 04:00:00



(please reply to the newsgroup-thanks)

Why do i get this error while doing this...?

(vpSql contain XML document(as string),
enocoding is windows-1255)

SET XMLdom=CreateObject("Microsoft.XMLDOM")
mlDOM.async=false
xmlDOM.loadXML vpSql

thanks
tomer
korpro

 
 
 

XML -"Switch from current encoding to specified encoding not supported."...????using hebrew

Post by Microsof » Thu, 16 Sep 1999 04:00:00


Because loadXML takes a BSTR which is UNICODE by definition.
If you want to load raw encoded XML use the load() method instead passing in
an object that supports IStream (or a SAFEARRAY containing the raw bytes).


Quote:> (please reply to the newsgroup-thanks)

> Why do i get this error while doing this...?

> (vpSql contain XML document(as string),
> enocoding is windows-1255)

> SET XMLdom=CreateObject("Microsoft.XMLDOM")
> mlDOM.async=false
> xmlDOM.loadXML vpSql

> thanks
> tomer
> korpro