Skip to content

Commit

Permalink
Force UTF-8 encoding of message in swirl_out to solve WINDOWS-1252, a…
Browse files Browse the repository at this point in the history
….k.a. "umlaut", problem.
  • Loading branch information
WilCrofter committed Nov 19, 2014
1 parent ee14f20 commit 0c007d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ swirl_out <- function(..., skip_before=TRUE, skip_after=FALSE) {
mes <- str_c("| ", wrapped, collapse = "\n")
if(skip_before) mes <- paste0("\n", mes)
if(skip_after) mes <- paste0(mes, "\n")
Encoding(mes) <- "UTF-8"
message(mes)
}

Expand Down

0 comments on commit 0c007d4

Please sign in to comment.