Skip to content

Commit

Permalink
iconv() to stri_encode()
Browse files Browse the repository at this point in the history
  • Loading branch information
MM committed Jul 22, 2024
1 parent 977efc4 commit e412a0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ importFrom(readr,read_file)
importFrom(readr,read_fwf)
importFrom(readr,read_lines)
importFrom(stats,na.omit)
importFrom(stringi,stri_encode)
importFrom(stringi,stri_trans_general)
importFrom(stringr,str_detect)
importFrom(stringr,str_replace_all)
Expand Down
2 changes: 1 addition & 1 deletion R/read_gv100.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ read_gv100 <- function(file, stzrt,
# accomodate Sorbian (Latin-1 can not).
x <- read_lines(file=file,
locale = locale(encoding = "UTF-8"), ...)
x <- iconv(x, from = "UTF-8", to = "ISO8859-2")
x <- stri_encode(x, from = "UTF-8", to = "ISO8859-2")

d <- withCallingHandlers(
read_fwf(
Expand Down
2 changes: 1 addition & 1 deletion R/wiesbaden-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' @importFrom keyring key_set_with_value key_list key_get
#' @importFrom stringr str_detect str_split str_replace_all str_trim str_to_lower
#' @importFrom readr read_csv read_csv2 read_fwf read_delim read_file read_lines locale cols col_character
#' @importFrom stringi stri_trans_general
#' @importFrom stringi stri_trans_general stri_encode
#' @importFrom stats na.omit
#' @importFrom utils read.csv2
#' @importFrom jsonlite fromJSON toJSON
Expand Down

0 comments on commit e412a0a

Please sign in to comment.