Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: why do I get question marks instead of bullets ??? >Thread Next - Re: why do I get question marks instead of bullets ??? Re: why do I get question marks instead of bullets ???To: NULL Date: 6/9/2004 5:36:00 PM Eric Osman wrote:
> "Julian F. Reschke" <julian.reschke@n...> wrote in message news:<OZUjCDSTEHA.1232@T...>...
>
>>Eric Osman wrote:
>>
>>><!--
>>>
>>>Please tell me :
>>>
>>> Why are the bullet marks shown as question marks ? How should I
>>> fix the following code ?
>>>
>>> To see the problem, please run this html file and click on the button.
>>
>>I think the answer is that there is simply no full Unicode support in
>>the XMLHTTP request object *unless* you're using the built-in XML
>>support (which of course is no option for HTML).
>>
>>Julian
>
>
>
> Is there no way using XMLHTTP to read the actual characters from web
> site http://www.aaamidatlantic.com/savings/default_aloha.asp ???
>
> If not, what would be convenient alternative way (from i.e. client
> javascript) to do it ????
You can use the responseStream property to get a binary stream, for
instance:
var stream = new ActiveXObject("ADODB.Stream");
http.open("GET", uri, false);
http.send();
// checkStatus(http, 200);
stream.open();
stream.Type = 1;
try {
if (http.responseText.length > 0) {
stream.Write(http.responseBody);
}
}
catch (e) {
WScript.Echo("empty content? " + e);
}
stream.SaveToFile(filename), 2);
stream.close();
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
