I'm using the following script to get the content of a URL:
WinHTTP = WScript.CreateObject('WinHttp.WinHttpRequest.5.1') ;
WinHTTP.Open( 'GET', theUrl ) ;
WinHTTP.Send() ;
var content = WinHTTP.ResponseText ;
which works fine except when the content of the URL is XML with UTF-8 encoding and there are latin1 characters in it.
I get an error about something missing in the multibyte codepage, and the script is terminated.
How can I tell WinHttp to ignore that error?
PS: The error occurs in Windows Vista but not in Windows XP (I don't know about Win 7 or 8).
I think that my answer here (on a variant of this question) s'd answer this as well.