From de45a371e3356371fa092a2c927592a6793a25f0 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Thu, 13 Sep 2018 16:15:41 -0700 Subject: [PATCH] Set RTF encoding to UTF-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The need for this was exposed by the use of a proper ellipsis for `...` in tibble's format method. As in: #> # … with 140 more rows --- R/reprex.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/reprex.R b/R/reprex.R index 3940df1f..7a24a11a 100644 --- a/R/reprex.R +++ b/R/reprex.R @@ -398,7 +398,7 @@ reprex_highlight <- function(rout_file, reprex_file, arg_string = NULL) { arg_string <- arg_string %||% highlight_args() cmd <- paste0( "highlight ", rout_file, - " --out-format=rtf --no-trailing-nl", + " --out-format=rtf --no-trailing-nl --encoding=UTF-8", arg_string, " > ", reprex_file )