Skip to content

Commit

Permalink
fix #193
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jul 25, 2022
1 parent 56754ae commit a775394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: geometa
Type: Package
Title: Tools for Reading and Writing ISO/OGC Geographic Metadata
Version: 0.7
Date: 2022-06-22
Date: 2022-07-25
Authors@R: c(person("Emmanuel", "Blondel", role = c("aut", "cre"), email = "emmanuel.blondel1@gmail.com", comment = c(ORCID = "0000-0002-5870-5762")))
Maintainer: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Description: Provides facilities to handle reading and writing of geographic metadata
Expand Down
2 changes: 1 addition & 1 deletion R/readISO19139.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ readISO19139 <- function(file = NULL, url = NULL, raw = FALSE){
raw_xml <- XML::xmlParse(doc, encoding = encoding, addFinalizer = FALSE)
}else{
raw_xml <- readr::read_lines(file)
raw_xml <- paste0(raw_xml, collapse="")
raw_xml <- paste0(raw_xml, collapse="\n")
if(Encoding(raw_xml) != "UTF-8") Encoding(raw_xml) <- "UTF-8"
if(Encoding(raw_xml) == "unknown"){
raw_xml <- XML::xmlParse(raw_xml, error = function (msg, ...) {}, addFinalizer = FALSE)
Expand Down

0 comments on commit a775394

Please sign in to comment.