0

I'm using RSelenium to run a RemoteDriver on my system. I need to extract a link from a page, and read that link with UTF-8 encoding (so that I can convert it to the encoding I need). This is what I'm doing right now -

url <- paste0("https://www.google.co.in/#q=abc+xyz") remDr$navigate(url) x <- remDr$findElement("css","._tWc")$getElementAttribute("href")

However, here the encoding of x is unknown (using Encoding(x)). Is there any way I can extract the link, while preserving the UTF-8 encoding?

0 Answers0