From h.wickham at gmail.com  Thu Sep 10 20:34:38 2015
From: h.wickham at gmail.com (Hadley Wickham)
Date: Thu, 10 Sep 2015 13:34:38 -0500
Subject: [Rd] Printing buglet for latin1 encoded strings
Message-ID: <CABdHhvE+Rfk7kVJ0TdjiRssLUFz-S7wj2UUeaki6=-F=uni+tQ@mail.gmail.com>

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/



[Rd] Printing buglet for latin1 encoded strings
Hadley Wickham