Skip to content
Prev 8289 / 15076 Next

accented vowels

On 11-08-15 2:42 PM, Denis Chabot wrote:
Possibly your system really is using MacRoman or some other local 
encoding; in that case, iconv(x, "", "UTF-8") should convert from the 
local encoding to UTF-8.

I think declaring everything to be UTF8 may be sufficient.  When I use 
list.files(), I see the encoding listed as "unknown", but

x <- list.files()
Encoding(x) <- "UTF-8"

works.  However, the iconv() method should be safer.

Duncan Murdoch