Why is ResponseText returning an error only on this website and not on others? How can this be fixed?
Script:
#SingleInstance,Force url=http://mangafox.me ;<-- Does not work | Works --> http//google.com, http://www.autohotkey.com, ... Gui,Add,Edit,w800 h500 -Wrap,% URLDownloadToVar(url) Gui,show, return URLDownloadToVar(url){ hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1") hObject.Open("GET",url) hObject.Send() return hObject.ResponseText }
Error:
<stderr>: Error: 0x80070459 - No mapping for the Unicode character exists in the target multi-byte code page. Source: WinHttp.WinHttpRequest Description: No mapping for the Unicode character exists in the target multi-byte code page. HelpFile: (null) HelpContext: 0 Specifically: ResponseText Line# 003: Gui,Add,Edit,w800 h500 -Wrap,URLDownloadToVar(url) 004: Gui,show 005: Return 006: { 007: hObject := ComObjCreate("WinHttp.WinHttpRequest.5.1") 008: hObject.Open("GET",url) 009: hObject.Send() ---> 010: Return,hObject.ResponseText 011: } 012: Exit 013: Exit 013: Exit Continue running the script?