Skip to content

Commit

Permalink
Hardcode UTF-8 encoding when reading parent docs
Browse files Browse the repository at this point in the history
  • Loading branch information
crsh authored Jun 4, 2020
1 parent 59afc70 commit 80fbb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/insert_citation.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ insert_citation <- function(
stop("More than one parent document found. See getOption('citr.parent_documents').")
}

parent_document <- readLines(parents_path[parents], warn = FALSE, encoding = getOption("citr.encoding"))
parent_document <- readLines(parents_path[parents], warn = FALSE, encoding = "UTF-8")
parent_yaml_delimiters <- grep("^(---|\\.\\.\\.)\\s*$", parent_document)

yaml_bib_file <- get_bib_from_yaml(
Expand Down

0 comments on commit 80fbb5b

Please sign in to comment.