You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to open a xml file encoded in ISO-8859-1 (aka latin-1) using xmlconvert, yet even if I specify xml_encoding it still claims my input isn't proper UTF-8. My call and traceback are as follows:
Loading the file using xml2::read_xml("./PrixCarburants_instantane.xml", encoding="latin-1") does work, and so does opening the file using Notepad and saving it as UTF-8 (which is a bit tedious). It appears to me that enc2utf8 and charToRaw somehow isn't doing its job when being confronted with direct latin-1 input.
I am trying to open a xml file encoded in ISO-8859-1 (aka latin-1) using xmlconvert, yet even if I specify xml_encoding it still claims my input isn't proper UTF-8. My call and traceback are as follows:
Loading the file using
xml2::read_xml("./PrixCarburants_instantane.xml", encoding="latin-1")
does work, and so does opening the file using Notepad and saving it as UTF-8 (which is a bit tedious). It appears to me thatenc2utf8
andcharToRaw
somehow isn't doing its job when being confronted with direct latin-1 input.My dataset can be found here
The text was updated successfully, but these errors were encountered: