XMLHTTP抓取數據時亂碼問題解決
編輯:AJAX詳解  
內碼問題.用這段代碼的吧,我已經改得很精簡了.
'使用XMLHTTP抓取地址並進次內容處理
Function GetBody(Url)
Dim objXML
On Error Resume Next
Set objXML = CreateObject("Microsoft.XMLHTTP")
With objXML
.Open "Get", Url, False, "", ""
.Send
GetBody = .ResponseBody
End With
GetBody=BytesToBstr(GetBody,"GB2312")
Set objXML = Nothing
End Function
'使用Adodb.Stream處理二進制數據
Function BytesToBstr(strBody,CodeBase)
dim obJStream
set obJStream = Server.CreateObject("Adodb.Stream")
obJStream.Type = 1
obJStream.Mode =3
obJStream.Open
obJStream.Write strBody
obJStream.Position = 0
obJStream.Type = 2
obJStream.Charset = CodeBase
BytesToBstr = obJStream.ReadText
obJStream.Close
set obJStream = nothing
End Function