We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4575c commit c1f33c5Copy full SHA for c1f33c5
R/readEuCodedFile.R
@@ -138,7 +138,7 @@ readFileEncodingFromHeader <- function(file)
138
# stopOnInvalidEncoding --------------------------------------------------------
139
stopOnInvalidEncoding <- function(encoding)
140
{
141
- if (!encoding %in% (available <- iconvlist())) {
+ if (!encoding %in% (available <- c("latin1", iconvlist()))) {
142
stop(kwb.utils::noSuchElements(encoding, available, "encoding string"))
143
}
144
0 commit comments