Code: Select all
oWindow:=ComObject(9,ComObjQuery(WBGet(),"{332C4427-26CB-11D0-B483-00C04FD90119}","{332C4427-26CB-11D0-B483-00C04FD90119}"),1)
xhr := oWindow.XMLHttpRequest()
xhr.Open("GET",URL,1)
xhr.send()
while(xhr.ReadyState!=4) ;Wait for it to complete
Sleep,50
MsgBox % XHR.ResponseText
On the page source it says "charset=windows-1252"
IE defaults to Encoding: Western European (ISO) which works.
On MsgBox characters like í or ó are missing as well as a few characters after. On notepad++ they are missing but a single '?' is on place.
A_IsUnicode = "Unicode"
I tried lots of things, Headers, SafeArrayAccessData, Fileappending and then Filereading.. But with no success. I don't know much about char encoding.. Anyone knows how to process/convert/interpret a ResponseText with a different encoding?