Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: why do I get question marks instead of bullets ???

From: "Julian F. Reschke" <julian.reschke@-----------------.-->
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();


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent