[R] Accents and special character using hwriter (on Windows)

arun smartpink111 at yahoo.com
Tue Jul 31 06:09:32 CEST 2012


I tried your code in R 2.15 with Ubuntu 12.04.  It looks okay to me. 

datosdv<-"Ciencias Sociales y Jurídicas n:74 | 33.94%" 
#[1] "Ciencias Sociales y Jurídicas n:74 | 33.94%"

#test.html output
Ciencias Sociales y Jurídicas n:74 | 33.94%

Probably, it must be specific with the windows.  Are you using windows7?


----- Original Message -----
From: ramonovelar <ramon.ovelar at gmail.com>
To: r-help at r-project.org
Sent: Monday, July 30, 2012 7:11 PM
Subject: [R] Accents and special character using hwriter (on Windows)


I have a problem with special characters such as "í" or "ñ" when using
hwriter. This only happens when I use windows, it works fine on mac. If I

"Ciencias Sociales y Jurídicas n:74 | 33.94%"


hwrite(datosdv, p, br=TRUE)
"Ciencias Sociales y Jur�dicas n:74 | 33.94%"

The bad sign is in the code, is not a problem of the encoding of the html
page, that is in UTF-8.

Does anybody have found this? Many thanks in advance.

View this message in context: http://r.789695.n4.nabble.com/Accents-and-special-character-using-hwriter-on-Windows-tp4638474.html
Sent from the R help mailing list archive at Nabble.com.

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list