Unc3nZureD Posted January 30, 2014 Share Posted January 30, 2014 (edited) Try the following source: $a = _INetGetSource("http://encryptedchat.fulba.com/uncenzured.txt") InetGet("http://encryptedchat.fulba.com/uncenzured.txt", @ScriptDir & "asd.txt", 1, 0) MsgBox(0, "", FileRead(@ScriptDir & "asd.txt")) MsgBox(0, "", $a) Exit Meanwhile _InetGetSource returns non UTF-8 string, Inetget will get the correct file. Why and how to solve? I tried to retrieve it as binary, but it's all the same. Am I forced to use InetGet? Edited January 30, 2014 by Unc3nZureD Link to comment Share on other sites More sharing options...
mikell Posted January 30, 2014 Share Posted January 30, 2014 $oHTTP = ObjCreate("Microsoft.XMLHTTP") $oHTTP.Open("GET", "http://encryptedchat.fulba.com/uncenzured.txt", 0) $oHTTP.Send() Local $txt = $oHTTP.Responsetext $oHTTP = 0 MsgBox(0, "", $txt) ? Link to comment Share on other sites More sharing options...
Unc3nZureD Posted January 30, 2014 Author Share Posted January 30, 2014 Well, that's a nice solution, I'll use that Anyways, any idea why the _InetGetSource Isn't working properly? Link to comment Share on other sites More sharing options...
mikell Posted January 30, 2014 Share Posted January 30, 2014 InetGet gets the same data than _InetGetSource, but FileRead can detect the encoding and returns the correct string Link to comment Share on other sites More sharing options...
Unc3nZureD Posted January 30, 2014 Author Share Posted January 30, 2014 Then I think they should improve the InetRead, to detect the encoding Link to comment Share on other sites More sharing options...
mikell Posted January 30, 2014 Share Posted January 30, 2014 Ahem, sorry... I forgot that $a = InetRead("http://encryptedchat.fulba.com/uncenzured.txt") MsgBox(0, "", BinaryToString($a, 4)) Link to comment Share on other sites More sharing options...
Unc3nZureD Posted January 30, 2014 Author Share Posted January 30, 2014 Oh, does it have such arguement? Good to know Thanks. Link to comment Share on other sites More sharing options...
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