I would like to extract some date from a webpage with iso-8859-1 characters with a VBA short Sub. I almost got the expected result. The problem is with some specific characters, for examle : é, è, ç, à ... Instead of having them right, I have a black box with a question mark for this character and the 2 following characters. What would you suggest ?
Here is how I got there :
my_url = "http://www.website.fr/"
Set html_doc = CreateObject("htmlfile")
Set xml_obj = CreateObject("MSXML2.XMLHTTP")
xml_obj.Open "GET", my_url, False
xml_obj.send
html_doc.body.innerhtml = xml_obj.responseText
Set xml_obj = Nothing
Sheets(1).Cells(1, 2).Value = html_doc.body.getElementsByTagName("div")(3).innertext