gooker Posted September 11, 2008 Posted September 11, 2008 Dim $Url= "http://www.baidu.com" $XML = ObjCreate("Microsoft.XMLHTTP") $XML.Open("Get", $Url, False ) $XML.Send $Result = $XML.ResponseText $File=FileOpen("Result.txt",2) FileWrite($File,$Result) FileClose($File) ShellExecuteWait("notepad.exe","Result.txt") FileDelete("Result.txt") ;;;messy code Chinese characters in ResponseText turn into messy code,need help thanks
DaveF Posted September 11, 2008 Posted September 11, 2008 Please read the AutoIt Help file for FileOpen, you need to use a Unicode mode for opening your file, like mode 34. Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.
gooker Posted September 11, 2008 Author Posted September 11, 2008 Dim $Url= "http://www.baidu.com" $XML = ObjCreate("Microsoft.XMLHTTP") $XML.Open("Get", $Url, False ) $XML.Send $Result = $XML.ResponseText msgbox(0,0,$Result) ths for your reply ,but i think it's not the FileOpen's problem
DaveF Posted September 11, 2008 Posted September 11, 2008 Dim $Url= "http://www.baidu.com" $XML = ObjCreate("Microsoft.XMLHTTP") $XML.Open("Get", $Url, False ) $XML.Send $Result = $XML.ResponseText $File=FileOpen("Result.htm",130) ; Open file for writing in unicode UTF8 mode. -- DaveF FileWrite($File,$Result) FileClose($File) ShellExecuteWait("notepad.exe","Result.htm") ;FileDelete("Result.htm") Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.
gooker Posted September 12, 2008 Author Posted September 12, 2008 Dim $Url= "http://www.baidu.com" $XML = ObjCreate("Microsoft.XMLHTTP") $XML.Open("Get", $Url, False ) $XML.Send $Result = $XML.ResponseText $File=FileOpen("Result.htm",130) ; Open file for writing in unicode UTF8 mode. -- DaveF FileWrite($File,$Result) FileClose($File) ShellExecuteWait("notepad.exe","Result.htm") ;FileDelete("Result.htm")also have the problem, and the correct should be :
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now