Trying to read and convert a XML file to DataFrame from FAERS but cannot read the file in R
So far I have tried both library(XML)
and library(xml2)
This error appears I have tried solutions online but does not work
> library(xml2)
> pg <- read_xml("faers/xml/ADR12Q4.xml")
Error in read_xml.character("faers/xml/ADR12Q4.xml") :
Input is not proper UTF-8, indicate encoding !
Bytes: 0xB5 0x67 0x2F 0x64 [9]
Data is freely available in the link Oct-Dec,2012
I have tried these -- Reading xml and utf8_encode(.) does not work in R