[Rd] Printing buglet for latin1 encoded strings

Hadley Wickham h.wickham at gmail.com
Thu Sep 10 20:34:38 CEST 2015


x <- c("août", "élève", "ça va")
y <- iconv(x, "UTF-8", "latin1")

x
#> [1] "août"  "élève" "ça va"
y
#> [1] "août"        "élève"       "ça va"

(note the difference in spacing)

On both R-release (mac) and R-devel (linux).  nchar() and format() both look ok.

Hadley


-- 
http://had.co.nz/



More information about the R-devel mailing list