Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: How to read french pages with MSXML2.ServerXMLHTTP


Message #1 by "jsh1" <hx2002xh@y...> on Mon, 22 Jul 2002 18:51:29
I used MSXML2.ServerXMLHTTP to get the code string from a webpage, which 
is written in French. But some of the code could not read by my IIS. When 
I display the code string in a textarea, some of French charactors are 
disordered. I guess it must be the problem of charset. How can I settle 
this problem?
My code:

<%  Set objXML = CreateObject("MSXML2.ServerXMLHTTP")    
    	
 strurl = "http://www.bnf.fr/pages/connaitr/connaitr.htm"
 objXML.Open "GET" , strurl , False ,"","" 		 
 objXML.Send								
	
 strOpen = objXML.ResponseText%>

<TEXTAREA rows=2 cols=20 id=textarea1 name=textarea1 style="width:700; 
height:400">
<%=strOpen%>
</TEXTAREA>

  Return to Index