error when loading XMLDOM: System does not support the specified encoding.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi there. I wrote my own RSS-feed reader for home-use.<br/> <br/> Until recently everything worked fine until the site VG changed their rss-feed to something I cannot process.<br/> <br/> The RSS is located at http://www.vg.no/rss/create.php<br/> <br/> code:<br/> set xmlDom = CreateObject("Microsoft.XMLDOM")  <br/> call xmlDom.setProperty("ServerHTTPRequest", true)  <br/> xmlDom.async = false  <br/> xmlDom.validateOnParse = false <br/> call xmlDom.load("http://www.vg.no/rss/create.php")  <br/> if not xmlDom.documentElement is nothing then <br/> (...)<br/> else<br/> (...)<br/>     wscript.echo "errorcode: " & xmldom.parseError.errorCode & " reason: " & xmldom.parseError.reason<br/>   end if<br/> <br/> Outputs errorcode: -1072896658 reason: System does not support the specified encoding. <br/> <br/> But when I use the msxml2.domdocument.6.0 object instead of Microsoft.XMLDOM it works fine! however I dont want to completely change my code just for this small change.<br/> <br/> Could somebody help me get rid of this error?

View the full article
 
Back
Top