When I create XML de novo, the encoding is not explicitly set to UTF-8 when I send the document through as.character() or write_xml(), even thought the text I'm putting into the nodes is. Am I missing a way to do that? This happens automatically when XML is created by read_xml().
The default encoding of an xml doc is UTF-8, so I wouldn't have thought you needed to specified it. @jimhester maybe we just need to tell xml2? I'm fine with making it difficult to make xml files that are not utf-8 encoded.
When I create XML de novo, the encoding is not explicitly set to UTF-8 when I send the document through
as.character()
orwrite_xml()
, even thought the text I'm putting into the nodes is. Am I missing a way to do that? This happens automatically when XML is created byread_xml()
.The text was updated successfully, but these errors were encountered: